819527061@qq.com
2023-11-24 5c8906cc4aaa7fcf70ee37de2dd1069161d80a61
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)
}