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
f539bd62
Commit
f539bd62
authored
Oct 11, 2021
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改路由跳转的两个小bug
parent
11dc01b0
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 @
f539bd62
...
...
@@ -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
()
{
...
...
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