【类 型】:fix 跳转一下 路由顺序

【原  因】:尝试修复一下 安卓端 token过期时 页面会报一次访问错误 问题
【过  程】:
【影  响】:

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
This commit is contained in:
tk 2024-10-11 18:46:16 +08:00
parent b9f9c1de91
commit 9b446416b0

View File

@ -7,15 +7,6 @@ import Layout from '@/views/layout/index'
Vue.use(VueRouter)
const routes = [
{
path: '/login',
component: Login,
meta: {
title: '登录',
roles: ['admin', 'editor'],
hidden: true
}
},
{
path: '/',
redirect: '/home/index',
@ -48,6 +39,15 @@ const routes = [
}
]
},
{
path: '/login',
component: Login,
meta: {
title: '登录',
roles: ['admin', 'editor'],
hidden: true
}
},
{
path: '/register',
component: Layout,