修改网页标题

master
jwg 3 months ago
parent 386245dbd4
commit 63d14d1c5b

@ -5,7 +5,8 @@
<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><%= htmlWebpackPlugin.options.title %></title>
<!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
<title>大数据可视化管理平台</title>
</head>
<body>
<noscript>

@ -209,9 +209,9 @@ router.beforeEach((to, from, next) => {
// }
/* 路由发生变化修改页面title */
if (to.meta.title) {
/* if (to.meta.title) {
document.title = to.meta.title;
}
} */
if (to.path === '/login') return next() //登录页面,直接跳转
if (to.path === '/release') return next() //大屏发布页面,直接跳转
if (to.path === '/ReleaseMobile') return next() //移动端发布页面,直接跳转

Loading…
Cancel
Save