付延余
2022-12-22 05b5c1f397bad8fb53a73ffe55209f573d309f4e
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)
}