From 7887434cde98de8ea5e24ea10db09d014568c79d Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期四, 22 八月 2024 10:38:15 +0800
Subject: [PATCH] 修改

---
 src/utils/request.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/utils/request.js b/src/utils/request.js
index 93a2c77..12be2b6 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -17,7 +17,7 @@
   // axios中请求配置有baseURL选项,表示请求URL公共部分
   baseURL: process.env.VUE_APP_BASE_API,
   // 超时
-  timeout: 10000
+  timeout: 60000
 })
 
 // request拦截器
@@ -81,7 +81,9 @@
         MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => {
           isRelogin.show = false;
           store.dispatch('LogOut').then(() => {
-            location.href = '/index';
+            // location.href = '/index';
+            let indexUrl = this.$store.state.permission.indexPage
+            location.href = indexUrl;
           })
       }).catch(() => {
         isRelogin.show = false;

--
Gitblit v1.9.2