From a169bda5b19db4714d2aa476504e58105228cc40 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 30 五月 2023 18:01:55 +0800
Subject: [PATCH] 1.对接移动端
---
src/utils/request.js | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/src/utils/request.js b/src/utils/request.js
index 5f7ded7..846075c 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -68,11 +68,19 @@
removeCookie('rediskey')
removeCookie('guid')
removeCookie('code')
- store.state.app.isGoToIndex = false
- setTimeout(() => {
- sessionStorage.removeItem('tabViews')
- window.location.reload()
- }, 1000 * 2)
+
+ if (getCookie('cloud')) {
+ removeCookie('cloud')
+ setTimeout(() => {
+ sessionStorage.removeItem('tabViews')
+ window.location.href = 'http://182.61.13.206/choose'
+ }, 1000 * 2)
+ } else {
+ setTimeout(() => {
+ sessionStorage.removeItem('tabViews')
+ window.location.reload()
+ }, 1000 * 2)
+ }
}
// 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired;
// if (res.code === 50008 || res.code === 50012 || res.code === 50014) {
--
Gitblit v1.9.3