付延余
2022-12-19 8fc8838a441ae3d3b1616f4fc003b16292978b54
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)
}