Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
bde537c7
authored
2020-10-12 13:42:04 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
监测路由变化,高亮顶部导航
1 parent
32419305
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
src/views/Home.vue
src/views/Home.vue
View file @
bde537c
...
...
@@ -164,7 +164,13 @@ export default {
},
watch
:
{
"$route.path"
:
function
(
newPath
)
{
this
.
defaultActive
=
this
.
pathAndCodeObj
[
newPath
];
//监测路由变化,高亮顶部导航
this
.
headTop
.
forEach
((
item
,
index
)
=>
{
item
.
select
=
false
;
if
(
item
.
path
==
newPath
)
{
item
.
select
=
true
;
}
});
},
},
created
()
{
...
...
Please
register
or
sign in
to post a comment