From eda8418797c254088a844c00a35d80c41686785b Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 17 Feb 2022 11:34:58 +0800 Subject: [PATCH] =?UTF-8?q?v3.7.0=20=E4=BC=98=E5=8C=96=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/src/components/ThemePicker/index.vue | 11 ----------- yudao-ui-admin/src/utils/request.js | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/yudao-ui-admin/src/components/ThemePicker/index.vue b/yudao-ui-admin/src/components/ThemePicker/index.vue index 5589f5fff..1714e1f39 100644 --- a/yudao-ui-admin/src/components/ThemePicker/index.vue +++ b/yudao-ui-admin/src/components/ThemePicker/index.vue @@ -47,14 +47,6 @@ export default { const themeCluster = this.getThemeCluster(val.replace('#', '')) const originalCluster = this.getThemeCluster(oldVal.replace('#', '')) - const $message = this.$message({ - message: ' 正在切换主题,请稍后...', - customClass: 'theme-message', - type: 'success', - duration: 0, - iconClass: 'el-icon-loading' - }) - const getHandler = (variable, id) => { return () => { const originalCluster = this.getThemeCluster(ORIGINAL_THEME.replace('#', '')) @@ -91,9 +83,6 @@ export default { }) this.$emit('change', val) - - $message.close() - }, updateStyle(style, oldCluster, newCluster) { diff --git a/yudao-ui-admin/src/utils/request.js b/yudao-ui-admin/src/utils/request.js index c7f5eff1c..315b9ae8b 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,