From 94503c7382778632731b36cf6ad47f7552e4ccf9 Mon Sep 17 00:00:00 2001
From: xuefei <564615061@qq.cm>
Date: 星期六, 29 十一月 2025 14:47:07 +0800
Subject: [PATCH] fix:批量通过参数错误
---
utils/index.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/utils/index.js b/utils/index.js
index f9f1910..1c6b914 100644
--- a/utils/index.js
+++ b/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)
}
--
Gitblit v1.9.1