From a93255e0a0334b51ecbaf3d8f496ad0fae1ed747 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 07 六月 2023 10:38:00 +0800
Subject: [PATCH] 1.生产入库有源单提交测试OK
---
src/utils/request.js | 22 ++++++++++++++++++----
1 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/src/utils/request.js b/src/utils/request.js
index 63f4fcd..3bcab4c 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -1,7 +1,8 @@
import axios from 'axios'
import { MessageBox, Message } from 'element-ui'
import store from '@/store'
-import { getCookie, getToken, removeCookie } from '@/utils/auth'
+import { getCookie, getToken, removeCookie, setCookie } from '@/utils/auth'
+import { handleDatetime } from '@/utils/global'
// create an axios instance
const service = axios.create({
@@ -64,10 +65,22 @@
removeCookie('navTabId')
removeCookie('usertype')
removeCookie('userid')
+ removeCookie('rediskey')
removeCookie('code')
- setTimeout(() => {
- window.location.reload()
- }, 3000)
+ removeCookie('guid')
+
+ 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) {
@@ -82,6 +95,7 @@
// })
// })
// }
+ store.state.app.buttonIsDisabled = false // 灏嗘寜閽彉鍥炲彲鐐瑰嚮
return Promise.reject(new Error(res.message || 'Error'))
}
// else if (res.code === '303') {
--
Gitblit v1.9.3