liweilong
2020-12-29 838f4ff0eb6808eb740de5f028b30f9c0434abc8
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)