Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
pingan-life-index-pro
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
ba886dcd
authored
2020-06-08 17:22:11 +0800
by
joe
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
f41ab33d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
src/router.js
src/router.js
View file @
ba886dc
...
...
@@ -352,7 +352,11 @@ function setTitleByRouter(to) {
// 不在下拉菜单的在三语的title取
// title = title || to.name
title
=
lang
[
to
.
name
+
''
]
&&
lang
[
to
.
name
+
''
].
title
||
title
;
// console.log("to.name == ", to.name);
// console.log("lang[to.name + ''] ", lang[to.name + '']);
// console.log("title == ", title);
title
=
lang
[
to
.
name
+
''
]
&&
lang
[
to
.
name
+
''
].
name
||
title
;
// to参数可以获取要前往页面的信息,包括参数
...
...
Please
register
or
sign in
to post a comment