From 7d9cfe6dae6f3bc1016cdacb497e4724e22ca3db Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期一, 28 八月 2023 14:30:37 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.110.209:9001/r/lims-before --- 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