From 9edf88b37afcc23f6c586a0f7937a726320fd9fc Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 17 Feb 2022 01:34:38 +0800 Subject: [PATCH] =?UTF-8?q?v3.7.0=20=E9=BB=98=E8=AE=A4=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E4=BD=BF=E7=94=A8keep-alive=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/src/router/index.js | 2 +- yudao-ui-admin/src/utils/request.js | 2 +- yudao-ui-admin/src/views/index_old.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/yudao-ui-admin/src/router/index.js b/yudao-ui-admin/src/router/index.js index f6856efef..7fc4f89ee 100644 --- a/yudao-ui-admin/src/router/index.js +++ b/yudao-ui-admin/src/router/index.js @@ -65,7 +65,7 @@ export const constantRoutes = [ path: 'index', component: (resolve) => require(['@/views/index'], resolve), name: '首页', - meta: {title: '首页', icon: 'dashboard', noCache: true, affix: true} + meta: {title: '首页', icon: 'dashboard', affix: true} } ] }, { diff --git a/yudao-ui-admin/src/utils/request.js b/yudao-ui-admin/src/utils/request.js index 6195d7ee7..c7f5eff1c 100644 --- a/yudao-ui-admin/src/utils/request.js +++ b/yudao-ui-admin/src/utils/request.js @@ -73,7 +73,7 @@ service.interceptors.response.use(res => { location.href = '/index'; }) }).catch(() => {}); - return Promise.reject() + return Promise.reject('令牌验证失败') } else if (code === 500) { Message({ message: msg, diff --git a/yudao-ui-admin/src/views/index_old.vue b/yudao-ui-admin/src/views/index_old.vue index 59c1bd187..eca2439e5 100644 --- a/yudao-ui-admin/src/views/index_old.vue +++ b/yudao-ui-admin/src/views/index_old.vue @@ -489,7 +489,7 @@