Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source-trace-manage-go
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tracing
source-trace-manage-go
Commits
179d702c
Commit
179d702c
authored
Dec 25, 2020
by
zL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
缓存currentRoute
parent
c8f52f26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
MainMenu.vue
src/components/MainMenu/MainMenu.vue
+3
-8
No files found.
src/components/MainMenu/MainMenu.vue
View file @
179d702c
...
@@ -42,22 +42,17 @@ let UrlPrefixObj = require("@/config/UrlPrefix");
...
@@ -42,22 +42,17 @@ let UrlPrefixObj = require("@/config/UrlPrefix");
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
currentRoute
:
0
,
currentRoute
:
Number
(
sessionStorage
.
getItem
(
"currentRoute"
))
,
};
};
},
},
mounted
()
{
mounted
()
{},
if
(
this
.
$route
.
path
===
"/userCenter"
)
{
this
.
currentRoute
=
2
;
}
else
{
this
.
currentRoute
=
0
;
}
},
methods
:
{
methods
:
{
selectPage
(
idnex
,
path
)
{
selectPage
(
idnex
,
path
)
{
if
(
idnex
===
1
)
{
if
(
idnex
===
1
)
{
window
.
open
(
UrlPrefixObj
.
model
.
CHAIN_BROWSER_URL_PREFIX
);
window
.
open
(
UrlPrefixObj
.
model
.
CHAIN_BROWSER_URL_PREFIX
);
}
else
{
}
else
{
if
(
this
.
currentRoute
===
idnex
)
return
;
if
(
this
.
currentRoute
===
idnex
)
return
;
sessionStorage
.
setItem
(
"currentRoute"
,
idnex
);
this
.
currentRoute
=
idnex
;
this
.
currentRoute
=
idnex
;
this
.
$router
.
push
({
path
:
path
});
this
.
$router
.
push
({
path
:
path
});
}
}
...
...
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