From b3cfcdd210536fa672b36e37b0f54bb9c4e98ada Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期五, 20 六月 2025 14:22:13 +0800 Subject: [PATCH] feat(tabbar): 二维码扫描功能适配 H5 端- 在 fg-tabbar 组件中添加了对 H5 端二维码扫描的支持 - 引入 qrcode 解析库以处理 H5 端的二维码扫描结果 - 根据平台类型(app 或 H5)选择不同的扫描方式 --- eims-ui-mobile/src/utils/http.ts | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/eims-ui-mobile/src/utils/http.ts b/eims-ui-mobile/src/utils/http.ts index 7314ccd..b9f2ada 100644 --- a/eims-ui-mobile/src/utils/http.ts +++ b/eims-ui-mobile/src/utils/http.ts @@ -119,6 +119,14 @@ }) } +export const httpDel = <T>(url: string) => { + return http<T>({ + url, + method: 'DELETE', + }) +} + http.get = httpGet http.post = httpPost http.put = httpPut +http.del = httpDel -- Gitblit v1.9.3