From 1392d8f3def2c21e7a6fc15cf3f68fc1056ec0b6 Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期二, 29 七月 2025 19:01:20 +0800
Subject: [PATCH] 三不原则

---
 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