From efd7c8fea38ab641db8581fb8c9d910640cfc8fb Mon Sep 17 00:00:00 2001 From: liweilong <515897141@qq.com> Date: 星期三, 09 十二月 2020 16:01:52 +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