Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
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
常超
founder_vue
Commits
1b2e3154
Commit
1b2e3154
authored
Feb 11, 2022
by
xue_wengang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
菜单激活
parent
9fdf5d22
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/layout/menuLayout.vue
+3
-3
src/views/queryRyhx/queryRyhx.vue
+1
-1
No files found.
src/layout/menuLayout.vue
View file @
1b2e3154
...
@@ -121,7 +121,7 @@ export default {
...
@@ -121,7 +121,7 @@ export default {
this
.
topHeader
=
this
.
header
;
this
.
topHeader
=
this
.
header
;
this
.
$bus
.
$on
(
"routerPath"
,
()
=>
{
this
.
$bus
.
$on
(
"routerPath"
,
()
=>
{
console
.
log
(
sessionStorage
.
getItem
(
"routerPath"
));
console
.
log
(
sessionStorage
.
getItem
(
"routerPath"
));
this
.
$refs
.
menu
.
activeIndex
=
sessionStorage
.
getItem
(
"routerPath"
);
//
this.$refs.menu.activeIndex = sessionStorage.getItem("routerPath");
});
});
},
},
watch
:
{
watch
:
{
...
@@ -143,8 +143,8 @@ export default {
...
@@ -143,8 +143,8 @@ export default {
// this.header = val;
// this.header = val;
},
},
$route
(
val
)
{
$route
(
val
)
{
this
.
activeIndex
=
this
.
activeIndex
=
this
.
$route
.
name
;
sessionStorage
.
getItem
(
"routerPath"
)
||
this
.
$route
.
name
;
debugger
let
index
=
this
.
topMenus
.
findIndex
((
i
)
=>
i
.
id
==
val
.
name
);
let
index
=
this
.
topMenus
.
findIndex
((
i
)
=>
i
.
id
==
val
.
name
);
if
(
!
val
.
meta
.
isAdd
&&
index
>=
0
)
{
if
(
!
val
.
meta
.
isAdd
&&
index
>=
0
)
{
this
.
activeName
=
val
.
name
;
this
.
activeName
=
val
.
name
;
...
...
src/views/queryRyhx/queryRyhx.vue
View file @
1b2e3154
...
@@ -67,7 +67,7 @@ export default {
...
@@ -67,7 +67,7 @@ export default {
id
:
"queryRyhx"
,
id
:
"queryRyhx"
,
label
:
"画像工厂"
,
label
:
"画像工厂"
,
newAuth
:
"M01"
,
newAuth
:
"M01"
,
index
:
"
2
"
,
index
:
"
1
"
,
className
:
"iconfont icongongnengfuwu"
,
className
:
"iconfont icongongnengfuwu"
,
hasChildren
:
true
,
hasChildren
:
true
,
children
:
[
children
:
[
...
...
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