From 45be153eaef9e1c1a3fe21515e9cbd785fba8e1f Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期二, 22 四月 2025 17:38:35 +0800 Subject: [PATCH] 线索任务 --- services/baseRequset.js | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/services/baseRequset.js b/services/baseRequset.js index 5282d7b..2c2d2b2 100644 --- a/services/baseRequset.js +++ b/services/baseRequset.js @@ -1,10 +1,4 @@ -import { - basePicUrl, - baseUrl, - baseFileUrl, - baseIconUrl, - mode, -} from '../config/index'; +import { basePicUrl, baseUrl, baseFileUrl, baseIconUrl, mode } from '../config/index'; function request(fun, hostUrl) { const bUrl = hostUrl ? hostUrl : baseUrl; @@ -69,3 +63,13 @@ fun['method'] = 'POST'; return request(fun, hostUrl); } + +export function put(fun, hostUrl) { + fun['method'] = 'PUT'; + return request(fun, hostUrl); +} + +export function _delete(fun, hostUrl) { + fun['method'] = 'DELETE'; + return request(fun, hostUrl); +} -- Gitblit v1.9.3