From 2cb65d99c9aebf8293cb2838fcfe3e09fb2739ce Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 06 十二月 2019 00:15:12 +0800
Subject: [PATCH] 2019-12-06

---
 src/api/index.js |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index 64f6778..b8303d2 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -22,16 +22,16 @@
   return Promise.reject(error)
 })
 
-const setCurrentUrl = () => {
-  if (!!(window.history && window.history.pushState)) {
-    window.history.replaceState(null, null, window.location.href.split('#')[0] + '#/login')
-    window.location.reload()
-  }
-}
+// const setCurrentUrl = () => {
+//   if (!!(window.history && window.history.pushState)) {
+//     window.history.replaceState(null, null, window.location.href.split('#')[0] + '#/login')
+//     window.location.reload()
+//   }
+// }
 
 axios.interceptors.response.use((response) => {
   if (response.data.ErrCode === 'LoginError') {
-    setCurrentUrl()
+    // setCurrentUrl()
   } else {
     return Promise.resolve(response.data)
   }

--
Gitblit v1.8.0