From 4bf4371fcb032cd2300c0e38631c230ea6460cbe Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Tue, 18 Nov 2025 16:58:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/project.js | 15 +++++++++++ pages/project/list/index.vue | 51 +++++++++++++++++++++++++++++++++--- 2 files changed, 63 insertions(+), 3 deletions(-) diff --git a/api/project.js b/api/project.js index dfb3b19..04805f8 100644 --- a/api/project.js +++ b/api/project.js @@ -127,3 +127,18 @@ export const updateProject = (data) => { }); }; +/** + * 删除项目 + * @param {string|string[]} ids 项目ID或ID数组 + * @returns {Promise} 删除结果 + */ +export const deleteProject = (ids) => { + const idsParam = Array.isArray(ids) ? ids.join(',') : ids; + + return uni.$uv.http.delete(`bst/project/${idsParam}`, {}, { + custom: { + auth: true + } + }); +}; + diff --git a/pages/project/list/index.vue b/pages/project/list/index.vue index ac4d4e4..52ffbf3 100644 --- a/pages/project/list/index.vue +++ b/pages/project/list/index.vue @@ -207,7 +207,7 @@