From 508716156223ae20a74b554636d21eafac14111d Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Fri, 10 Jun 2022 15:33:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=9B=E5=BB=BA=E8=80=85?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/ImportFile/index.vue | 35 +++++++++++++++---- .../components/PersonnelSelection/index.vue | 26 +++++++------- .../components/globalAdvancedQuery/index.vue | 22 ++++++++++-- .../components/listOfRegulations.vue | 22 ++++++++++-- 4 files changed, 80 insertions(+), 25 deletions(-) diff --git a/jero-web/src/components/ImportFile/index.vue b/jero-web/src/components/ImportFile/index.vue index be20c78e7..0cf22bbe0 100644 --- a/jero-web/src/components/ImportFile/index.vue +++ b/jero-web/src/components/ImportFile/index.vue @@ -11,7 +11,7 @@
- +
{{this.$t('Importing')}}...
@@ -127,6 +127,23 @@ } this.spinning = false } else { + let data = info.file.response + const token = Vue.ls.get(ACCESS_TOKEN) + if (token && data.message.includes('Token失效')) { + Modal.error({ + title: '登录已过期', + content: '很抱歉,登录已过期,请重新登录', + okText: '重新登录', + mask: false, + onOk: () => { + store.dispatch('Logout').then(() => { + Vue.ls.remove(ACCESS_TOKEN) + window.location.reload() + }) + } + }) + return + } let { message } = info.file.response let { name } = info.file let content = [] @@ -185,7 +202,7 @@ }