diff --git a/src/permission.js b/src/permission.js index d4c74ad..2e2d594 100644 --- a/src/permission.js +++ b/src/permission.js @@ -39,8 +39,9 @@ router.beforeEach(async(to, from, next) => { // remove token and go to login page to re-login await store.dispatch('user/resetToken') Message.error(error || 'Has Error') - next(`/login?redirect=${to.path}`) - NProgress.done() + // next(`/login?redirect=${to.path}`) + // NProgress.done() + window.location.href = '' } } } diff --git a/src/router/index.js b/src/router/index.js index c63f910..022a9a1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -87,7 +87,7 @@ export const asyncRoutes = [ path: 'record', name: 'Record', component: () => import('@/views/record'), - meta: { title: '工程师状态', icon: 'el-icon-s-custom' } + meta: { title: '工程师派工', icon: 'el-icon-s-custom' } }] }, { diff --git a/src/views/record/index.vue b/src/views/record/index.vue index bf93d4e..408288f 100644 --- a/src/views/record/index.vue +++ b/src/views/record/index.vue @@ -295,7 +295,7 @@ - +