From cdc9c0a33eb2f8e97eb8141e72fd645b9468906d Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期三, 06 九月 2023 18:11:13 +0800
Subject: [PATCH] modified: src/views/personal/myInformation/index.vue
---
src/api/util/requestUtil.js | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/src/api/util/requestUtil.js b/src/api/util/requestUtil.js
index 263da29..df22c02 100644
--- a/src/api/util/requestUtil.js
+++ b/src/api/util/requestUtil.js
@@ -16,3 +16,29 @@
})
}
+export function put(path, data) {
+ return request({
+ url: path,
+ method: 'put',
+ data
+ })
+}
+
+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