From b786fa52322e1192652ff44a41c39bfed9738006 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 01 二月 2020 16:34:26 +0800
Subject: [PATCH] 2020-02-01

---
 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 cc854e2..b520db2 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -26,10 +26,10 @@
 })
 
 const setCurrentUrl = () => {
-  if (!!(window.history && window.history.pushState)) {
-    window.history.replaceState(null, null, window.location.href.split('#')[0] + '#/login')
-    window.location.reload()
-  }
+  // if (!!(window.history && window.history.pushState)) {
+  //   window.history.replaceState(null, null, window.location.href.split('#')[0] + '#/login')
+  //   window.location.reload()
+  // }
 }
 
 let GlobMap = new Map()
@@ -104,6 +104,8 @@
 
     if (isCloud && options.cloudLoginApi) {
       param.rduri = options.cloudLoginApi
+    } else if (window.GLOB.mainSystemApi) {
+      param.rduri = window.GLOB.mainSystemApi.replace(/\/webapi(.*)/, '/webapi/dologon')
     }
 
     return axios({

--
Gitblit v1.8.0