From 44f9e74915e5dbdac912d81d95ba60284bec140c Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期六, 26 八月 2023 11:55:50 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
src/api/util/requestUtil.js | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/src/api/util/requestUtil.js b/src/api/util/requestUtil.js
index 263da29..3055a2f 100644
--- a/src/api/util/requestUtil.js
+++ b/src/api/util/requestUtil.js
@@ -16,3 +16,21 @@
})
}
+export function wpost(path, params) {
+ return request({
+ url: path,
+ method: 'post',
+ params
+ })
+}
+
+export function postFile(path, data) {
+ return request({
+ url: path,
+ method: 'post',
+ headers: {
+ 'Content-Type': 'multipart/form-data'
+ },
+ data
+ })
+}
--
Gitblit v1.9.3