更改资产类目删除传递字段,由id改为bid

This commit is contained in:
2026-03-18 14:50:08 +08:00
parent e5dcbab2d1
commit a63b01e6ec
2 changed files with 3 additions and 3 deletions

View File

@@ -56,11 +56,11 @@ export function updateCategory(data: object) {
} }
// 删除分类 // 删除分类
export function deleteCategory(id: number) { export function deleteCategory(bid: string) {
return newService({ return newService({
url: '/assets/category/deleteCategory', url: '/assets/category/deleteCategory',
method: 'delete', method: 'delete',
params: { id }, params: { bid },
}); });
} }

View File

@@ -154,7 +154,7 @@ const onRowDel = (row: CategoryRow) => {
type: 'warning', type: 'warning',
}) })
.then(() => { .then(() => {
deleteCategory(row.id).then(() => { deleteCategory(row.bid).then(() => {
ElMessage.success('删除成功'); ElMessage.success('删除成功');
getCategoryList(); getCategoryList();
}); });