Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Starter Web Vue
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
product
kim3-web-vue
Starter Web Vue
Commits
445c4639
Commit
445c4639
authored
Jul 05, 2021
by
水落(YangLei)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: 优化代码
parent
c9eb73e3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
src/App.vue
src/App.vue
+1
-3
src/components/menu/menu.js
src/components/menu/menu.js
+1
-0
No files found.
src/App.vue
View file @
445c4639
...
...
@@ -66,9 +66,7 @@ export default {
},
setHtmlTitle
()
{
const
route
=
this
.
$route
;
const
key
=
route
.
path
===
'
/
'
?
'
home.name
'
:
getI18nKey
(
route
.
matched
[
route
.
matched
.
length
-
1
].
path
);
document
.
title
=
process
.
env
.
VUE_APP_NAME
+
'
|
'
+
this
.
$t
(
key
);
if
(
route
.
name
)
window
.
title
=
route
.
name
;
},
popContainer
()
{
return
document
.
getElementById
(
'
popContainer
'
);
...
...
src/components/menu/menu.js
View file @
445c4639
...
...
@@ -186,6 +186,7 @@ export default {
getOpenKeysByPath
(
path
)
{
const
{
menuList
}
=
getUserInfo
();
const
{
parentMenuId
}
=
this
.
menuData
.
find
(
m
=>
m
.
menuUrl
===
path
);
if
(
parentMenuId
===
0
)
return
[];
const
parentMenus
=
[
parentMenuId
];
const
res
=
[
parentMenuId
];
while
(
parentMenus
.
length
)
{
...
...
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