From 7296af88e7514c29cc913ef9988050bc8684292e Mon Sep 17 00:00:00 2001 From: zhoulingpo Date: Fri, 26 May 2023 13:14:28 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E7=94=A8=E6=88=B7=E8=B4=A6=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Header.vue | 4 ++++ src/utils/request.js | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/src/components/Header.vue b/src/components/Header.vue index 0f5cc37..f26f3a6 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -90,6 +90,10 @@ export default { this.$store.commit('activeTab', null) this.$store.commit('removeDicts', null) localStorage.removeItem('cookie') + aplus_queue.push({ + action: 'aplus.setMetaInfo', + arguments: ["_user_id", ""] + }); // var sevice = "http://"+window.location.host+"/"; // var serviceUrl = encodeURIComponent(sevice); // 正式 diff --git a/src/utils/request.js b/src/utils/request.js index 9c8e744..c316595 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -87,6 +87,10 @@ instance.interceptors.response.use(function (response) { localStorage.removeItem('cookie') router.push('/login') Message.error('登录超时过期') + aplus_queue.push({ + action: 'aplus.setMetaInfo', + arguments: ["_user_id", ""] + }); // window.open(BASE_URL.BASE_CHANGAN + "/logout?service=" + BASE_URL.BASE_LOCAL + "/login?loginType=1", '_self'); // var url = 'http://192.168.144.22:9966/login?loginType=1' // // var url = 'http://10.64.23.30:7766/home' @@ -103,6 +107,10 @@ instance.interceptors.response.use(function (response) { localStorage.removeItem('cookie') router.push('/login') Message.error('登录超时过期') + aplus_queue.push({ + action: 'aplus.setMetaInfo', + arguments: ["_user_id", ""] + }); // window.open(BASE_URL.BASE_CHANGAN + "/logout?service=" + BASE_URL.BASE_LOCAL + "/login?loginType=1", '_self'); // var url = 'http://192.168.144.22:9966/login?loginType=1' // // var url = 'http://10.64.23.30:7766/home'