From da9e5a67fbdb03561d9359379867c760f4fd8981 Mon Sep 17 00:00:00 2001
From: 李林 <z1292839451@163.com>
Date: 星期三, 23 八月 2023 13:42:01 +0800
Subject: [PATCH] 更新检验计划

---
 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