From 07fae6b200ff7001c9eeef231b928fe0a6d6206c Mon Sep 17 00:00:00 2001
From: unknown <李伟龙>
Date: 星期二, 05 一月 2021 13:41:43 +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