Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
Project
Project
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
耿迪迪
gassafety
Commits
1c132af4
Commit
1c132af4
authored
3 years ago
by
纪泽龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_jzl'
parents
644ec7c1
f539bd62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
index.vue
gassafety-web/src/components/TopNav/index.vue
+5
-3
No files found.
gassafety-web/src/components/TopNav/index.vue
View file @
1c132af4
...
...
@@ -152,7 +152,7 @@ export default {
// 为了解决菜单样式bug问题
moreMenuChange
()
{
// 展示更多的前一个路由
const
lastMenuPath
=
this
.
topMenus
[
this
.
visibleNumber
-
1
].
path
;
const
lastMenuPath
=
this
.
topMenus
[
this
.
visibleNumber
-
1
]
?
.
path
;
// 当前跳转的路由
const
routerMenuPath
=
this
.
$route
.
matched
[
0
].
path
;
// 如果点击的正好是展示更多的前一个,展示更多就不能拥有高亮
...
...
@@ -175,8 +175,10 @@ export default {
this
.
moreMenu
=
true
;
},
removeEvt
()
{
this
.
$refs
.
noBg
.
$el
.
removeEventListener
(
"mouseover"
,
this
.
mouseOver
);
this
.
$refs
.
noBg
.
$el
.
removeEventListener
(
"mouseout"
,
this
.
mouseOut
);
if
(
this
.
$refs
.
noBg
)
{
this
.
$refs
.
noBg
.
$el
.
removeEventListener
(
"mouseover"
,
this
.
mouseOver
);
this
.
$refs
.
noBg
.
$el
.
removeEventListener
(
"mouseout"
,
this
.
mouseOut
);
}
},
// 根据宽度计算设置显示栏数
setVisibleNumber
()
{
...
...
This diff is collapsed.
Click to expand it.
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