From 9603fd5d0d0aba2f4c83a0bcfcd4aea39ca644a3 Mon Sep 17 00:00:00 2001
From: zhangherong <571457620@qq.com>
Date: 星期六, 12 七月 2025 14:22:08 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
src/utils/request.js | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/utils/request.js b/src/utils/request.js
index 4f0c381..54d202f 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -17,7 +17,7 @@
const service = axios.create({
//baseURL: '/jeecg-boot',
baseURL: apiBaseUrl, // api base_url
- timeout: 500000 // 璇锋眰瓒呮椂鏃堕棿
+ timeout: 3600000 // 璇锋眰瓒呮椂鏃堕棿
})
const err = (error) => {
@@ -79,7 +79,8 @@
if (token) {
store.dispatch('Logout').then(() => {
setTimeout(() => {
- window.location.reload()
+ router.push({ path: '/user/login' });
+ // window.location.reload()
}, 1500)
})
}
@@ -169,7 +170,10 @@
onOk: () => {
store.dispatch('Logout').then(() => {
Vue.ls.remove(ACCESS_TOKEN)
- window.location.reload()
+ setTimeout(() => {
+ router.push({ path: '/user/login' });
+ // window.location.reload()
+ }, 1500)
})
}
})
--
Gitblit v1.9.3