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 @@