1.在谷歌浏览器测试的时候在任意界面点击刷新都会跳转到登录页。怎么实现刷新的时候路由不跳转,还是在当前页面。
路由代码:
const routes = [
{
path: '/', component: Index, redirect: '/home',
children: [
{path: '/system',component: SystemConfiguration,name: '系统配置'},
{path: '/initialize', component: Initialize, name: '初始化'},
{path: '/online/assemblyOnline', component: AssemblyOnline, name: '装配上线'},
{path: '/online/machineplusOnline', component: MachineplusOnline, name: '机加上线'},
{path: '/assembleInsert', component: AssembleInsert, name: '装配下线'},
{path: '/hothost', component: HostTest, name: '热试'}
]
},
{path: '/login', component: Login}
]
jeck猫
aluckdog
当年话下
相关分类