utils/index.js
@@ -28,7 +28,7 @@ } // post请求 export const reqPost = (url, params, form, opt = {}) => { export const reqPost = (url, params,form, opt = {}) => { if(form == 'form'){ opt.header = {'Content-Type': 'application/x-www-form-urlencoded'} } else { @@ -36,5 +36,6 @@ } opt.method = "POST"; opt.data = params; opt.params = params; return fetch(url, opt) }