diff --git a/public/favicon.ico b/public/favicon.ico index 0ccdd32..be7684d 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/public/index.html b/public/index.html index ceb3973..ce329d3 100644 --- a/public/index.html +++ b/public/index.html @@ -5,7 +5,7 @@ - + <%= htmlWebpackPlugin.options.title %> diff --git a/public/title.ico b/public/title.ico new file mode 100644 index 0000000..be7684d Binary files /dev/null and b/public/title.ico differ diff --git a/src/router/index.js b/src/router/index.js index 5d61f23..a0194af 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -155,7 +155,6 @@ const router = new VueRouter({ }) // 前置路由守卫 router.beforeEach((to, from, next) => { - // to到哪里取 from 从哪里来 next 放行 const token = local.get('token_sd') if (to.meta.title) { // 修改总标题 document.title = '基芯农育种' + '-' + to.meta.title // routes数组中--meta是关键 @@ -166,9 +165,8 @@ router.beforeEach((to, from, next) => { if (to.path === '/login') { next() } - next('/login') } - // next('/login') } + // next('/login') ) export default router