From 57fedb8aa042c9f8bf5a3214b455144436850f1f Mon Sep 17 00:00:00 2001 From: liweilong <515897141@qq.com> Date: 星期五, 25 十二月 2020 11:07:01 +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