From 3f3c98956ea6da68af9610fa2237dd9ec91e6757 Mon Sep 17 00:00:00 2001
From: liweilong <515897141@qq.com>
Date: 星期一, 28 十二月 2020 18:33:44 +0800
Subject: [PATCH] 角色管理使用keepalive

---
 src/utils/http.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/utils/http.js b/src/utils/http.js
index 0ee0f9d..70f0a45 100644
--- a/src/utils/http.js
+++ b/src/utils/http.js
@@ -177,7 +177,10 @@
         // ...urlEncodes,
       }
       // // 灏嗚姹傚弬鏁版斁鍒伴摼鎺ュ悗闈�
-      var paramsUrl = urlEncode(urlEncodes).replace('&', '?')
+      var paramsUrl = urlEncode(urlEncodes)
+      if(!/\?/.test(ajaxUrl)) {
+          paramsUrl = paramsUrl.replace('&', '?')
+      }
       ajaxUrl = ajaxUrl + paramsUrl
 
       // console.log(ajaxUrl)

--
Gitblit v1.8.0