From 32e57481fc33fa98c5628fdadd41460ccef24d28 Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: 星期六, 13 八月 2022 13:54:04 +0800
Subject: [PATCH] 添加修改页面

---
 src/utils/request.ts |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/utils/request.ts b/src/utils/request.ts
index 14169b4..4abb65d 100644
--- a/src/utils/request.ts
+++ b/src/utils/request.ts
@@ -93,10 +93,10 @@
             }, 1000);
         } else if (error.message == 'Network Error') {
             ElMessage.error('网络连接错误');
-            setTimeout(() => {
-                Session.clear();
-                window.location.href = '/';
-            }, 1000);
+            // setTimeout(() => {
+            //     Session.clear();
+            //     window.location.href = '/';
+            // }, 1000);
         } else {
             if (error.response.data) ElMessage.error(error.response.data.error);
             else ElMessage.error('接口路径找不到');

--
Gitblit v1.9.2