From 7ea11ffdcded8e6398be995d84256b607b46121b Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Tue, 11 Aug 2026 13:39:51 +0800 Subject: [PATCH] fix(mobile-oa-h5): remove duplicate put helper and re-export it Co-authored-by: Cursor --- mobile-oa-h5/src/api/oa.js | 2 +- mobile-oa-h5/src/utils/http.js | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/mobile-oa-h5/src/api/oa.js b/mobile-oa-h5/src/api/oa.js index 8ad4365f..24a97ab6 100644 --- a/mobile-oa-h5/src/api/oa.js +++ b/mobile-oa-h5/src/api/oa.js @@ -79,4 +79,4 @@ export function fetchStartOaInstance(data) { return post('/web/admin/oa-approval/instances', data) } -export { post } +export { post, put } diff --git a/mobile-oa-h5/src/utils/http.js b/mobile-oa-h5/src/utils/http.js index 54728896..45d1a8e4 100644 --- a/mobile-oa-h5/src/utils/http.js +++ b/mobile-oa-h5/src/utils/http.js @@ -65,7 +65,3 @@ export function post(url, data) { export function put(url, data) { return request({ url, method: 'PUT', data }) } - -export function put(url, data) { - return request({ url, method: 'PUT', data }) -}