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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
src/router.js
src/router.js
View file @
ba886dc
...
...
@@ -323,12 +323,12 @@ function setTitleByRouter(to) {
case
"zh"
:
lang
=
zh
;
break
;
// 英文
// 英文
case
"en"
:
defaultTitle
=
"Ping An Life Hong Kong"
lang
=
en
;
break
;
// 繁体
// 繁体
default
:
defaultTitle
=
"中國平安人壽(香港)"
lang
=
tc
;
...
...
@@ -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