From b515fae43490ab20977d559e19d4e5f63a4fd96d Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 25 四月 2025 16:42:39 +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