CanadaMes-ui/src/router/index.js
@@ -122,9 +122,13 @@ { path: '/Electrical/ManualJog', component: () => import('../views/Electrical/ManualJog') }, { path: '/Electrical/InteractionState', component: () => import('../views/Electrical/InteractionState') } ] } @@ -134,7 +138,10 @@ const router = new VueRouter({ // base: '/canadames/', routes routes, meta:{ keepAlive:false } }); // 路由控制守卫,解决需要登录才可以访问的页面 @@ -144,8 +151,6 @@ // 获取token const hasToken = getToken(); const isExist = Vue.prototype.$tagList.some(tag => tag.path === to.fullPath);