Skip to content

Commit

Permalink
动态站点信息
Browse files Browse the repository at this point in the history
  • Loading branch information
ghbhaha committed Aug 11, 2018
1 parent 35c43eb commit 94899d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>SudaVideo</title>
<title></title>
</head>
<body>

Expand Down
4 changes: 0 additions & 4 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export default new Router({
component: Home,
name: 'Home',
meta: {
title: 'SudaVideo',
keepAlive: true
}
},
Expand All @@ -24,7 +23,6 @@ export default new Router({
component: Home,
name: 'Home',
meta: {
title: 'SudaVideo',
keepAlive: true
},
props: true
Expand Down Expand Up @@ -64,7 +62,5 @@ export default new Router({
title: '免责声明'
}
}


]
})
6 changes: 6 additions & 0 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@
}
}
})
VideoApi.getSiteInfo().then(res => {
if (res) {
document.title = res.siteName;
}
})
},
methods: {
querySearchAsync(queryString, cb) {
Expand Down

0 comments on commit 94899d4

Please sign in to comment.