fix:优化快速查询模块

This commit is contained in:
wuzhihao
2024-08-30 15:59:48 +08:00
4 changed files with 2 additions and 4 deletions

View File

@@ -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