From fe0d925329dd86143a9b90168a250414f0c0ff4b Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Thu, 23 Jun 2022 14:17:04 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/public/static/config/location.js | 4 +- front/src/utils/request.js | 23 +++++- .../components/CapabilityConvergence.vue | 81 ++++++++++++++----- .../views/newHome/components/Navigation2.vue | 6 +- 4 files changed, 90 insertions(+), 24 deletions(-) diff --git a/front/public/static/config/location.js b/front/public/static/config/location.js index f4ff914d..b6668da1 100644 --- a/front/public/static/config/location.js +++ b/front/public/static/config/location.js @@ -2,12 +2,12 @@ * @Author: hisense.wuhongjian * @Date: 2020-07-07 16:03:23 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-06-22 16:18:47 + * @LastEditTime: 2022-06-23 10:53:31 * @Description: 数据资源参数配置 */ // const newLocation = 'qingdao' // const newLocation = 'baotou' -const newLocation = 'qingdao' +const newLocation = 'xihaian' // 数据资源数据 const whoShow = {} diff --git a/front/src/utils/request.js b/front/src/utils/request.js index a939dd25..b9b36c15 100644 --- a/front/src/utils/request.js +++ b/front/src/utils/request.js @@ -129,7 +129,28 @@ instance.interceptors.response.use( if (error.response && error.response.data) { console.log('接口返回', response) console.log('接口返回headers', response.headers) - console.log('接口返回REDIRECT', response.headers.redirect) + console.log('接口返回REDIRECT1111', response.headers.redirect) + if (response.headers.redirect === '/#/login') { + var keys = document.cookie.match(/[^ =;]+(?=\=)/g) + if (keys) { + for (var i = keys.length; i--; ) { + document.cookie = + keys[i] + '=0;path=/;expires=' + new Date(0).toUTCString() //清除当前域名下的,例如:m.kevis.com + document.cookie = + keys[i] + + '=0;path=/;domain=' + + document.domain + + ';expires=' + + new Date(0).toUTCString() //清除当前域名下的,例如 .m.kevis.com + document.cookie = + keys[i] + + '=0;path=/;domain=kevis.com;expires=' + + new Date(0).toUTCString() //清除一级域名下的或指定的,例如 .kevis.com + } + } + console.log('已清除') + location.reload() + } if (response.headers.redirect) { window.location.href = response.headers.redirect return Promise.reject(error) diff --git a/front/src/views/newHome/components/CapabilityConvergence.vue b/front/src/views/newHome/components/CapabilityConvergence.vue index 3a02c403..1b5ecd85 100644 --- a/front/src/views/newHome/components/CapabilityConvergence.vue +++ b/front/src/views/newHome/components/CapabilityConvergence.vue @@ -34,24 +34,28 @@
基础设施
-
1-J1-党建展示区走廊-北向
-
2-J2-党建数据中心机房
-
3-J3-党建展示区走廊-南向
-
4-J4-党建大厅电动门
-
5-J5-指挥席位东北向
+
+ {{ index + 1 }}-{{ item.name }} +
查看更多
数据资源
-
1-扬尘数据接口
-
2-根据证件号码查询全员核酸检测信息(人社专用)
-
- 3-根据身份证号、姓名、开始日期、结束日期获取医保住院结算信息(市人社局专用) +
+ {{ index + 1 }}-{{ item.name }}
-
- 4-根据身份证号、姓名、年度查询医保参保缴费信息(市委组织部专用) -
-
5-"金种子"人才培养经费查询API
查看更多
@@ -72,13 +76,15 @@