From d8de196a5311f9ad7a01dbb988e0ad12b50f87e8 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 07 三月 2025 21:24:48 +0800
Subject: [PATCH] Merge branch 'develop'

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

diff --git a/src/api/index.js b/src/api/index.js
index 23aaaf7..86a16f4 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()
+            }
           }
         }
       })
@@ -214,6 +216,9 @@
       } else {
         param.linkurl = window.GLOB.linkurl
       }
+    } else if (binding_type === 'cloud') { // 鐧诲綍浜戠
+      delete param.rduri
+      url = window.atob('aHR0cHM6Ly9jbG91$mkZC5tazloLmNu'.replace('$mk', '')) + '/webapi/dologon/s_visitor_login'
     }
     
     param.LText = md5(window.btoa(_SessionUid + param.timestamp + (param.linkurl || '')))

--
Gitblit v1.8.0