From 855cab1e2835ec50e467b235df382ac1f9dfad1d Mon Sep 17 00:00:00 2001
From: liweilong <515897141@qq.com>
Date: 星期三, 09 十二月 2020 17:29:22 +0800
Subject: [PATCH] 隐藏右边设置栏

---
 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