Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
react-live-route
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fukai
react-live-route
Commits
c9be52bd
Commit
c9be52bd
authored
Jul 07, 2018
by
Wee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(uuid): make uuid connected to pathname
parent
f67908dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
LiveRoute.js
modules/LiveRoute.js
+4
-2
No files found.
modules/LiveRoute.js
View file @
c9be52bd
...
...
@@ -201,14 +201,16 @@ class Route extends React.Component {
// compose LiveRoute uuid
getComposeRouteId
()
{
console
.
log
(
this
.
context
)
let
id
=
''
if
(
id
)
{
return
id
}
const
pathname
=
this
.
context
.
router
.
history
.
location
.
pathname
if
(
this
.
props
.
alwaysLive
)
{
id
=
`@
@_rlr_ALWAYS_LIVE_
${
this
.
props
.
path
}
`
id
=
`@
RLR-@ALWAYSLIVE=
${
this
.
props
.
path
}
-@PATHNAME=
${
pathname
}
`
}
else
if
(
this
.
props
.
livePath
)
{
id
=
`@
@_rlr_PATH_
${
this
.
props
.
path
}
_LIVE_PATH_
${
this
.
props
.
livePath
}
`
id
=
`@
RLR-@PATH=
${
this
.
props
.
path
}
-@LIVEPATH=
${
this
.
props
.
livePath
}
-@PATHNAME=
${
pathname
}
`
}
return
id
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment