From 861192573a5fa59529d542201c210066f0ed3ca4 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 07 三月 2025 21:25:19 +0800
Subject: [PATCH] Merge branch 'master' into positec

---
 src/api/index.js |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index 37f14a6..85360e8 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -48,10 +48,12 @@
         okText: '鐭ラ亾浜�',
         onOk: () => {
           window.GLOB.$error = false
-          sessionStorage.clear()
-          if (!!(window.history && window.history.pushState)) {
-            window.history.replaceState(null, null, window.location.href.split('#')[0] + '#/login')
-            window.location.reload()
+          if (!/#\/login/.test(window.location.href)) {
+            sessionStorage.clear()
+            if (!!(window.history && window.history.pushState)) {
+              window.history.replaceState(null, null, window.location.href.split('#')[0] + '#/login')
+              window.location.reload()
+            }
           }
         }
       })

--
Gitblit v1.8.0