From d6f85f33f014382580a45f12997537801ae43cee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E6=98=AD=E6=9C=9D?= <18394339404@163.com> Date: Thu, 18 Jul 2024 17:25:42 +0800 Subject: [PATCH] =?UTF-8?q?init:=20=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 5 +++-- src/router/index.js | 2 +- src/views/record/index.vue | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) 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 @@ - +