feat: 菜单级联删除

This commit is contained in:
dap
2025-05-24 12:45:18 +08:00
parent c45eed90d9
commit 6daedd1de5
3 changed files with 44 additions and 6 deletions

View File

@@ -81,3 +81,12 @@ export function tenantPackageMenuTreeSelect(packageId: ID) {
`${Api.tenantPackageMenuTreeselect}/${packageId}`,
);
}
/**
* 批量删除菜单
* @param menuIds 菜单ids
* @returns void
*/
export function menuCascadeRemove(menuIds: IDS) {
return requestClient.deleteWithMsg<void>(`${Api.root}/cascade/${menuIds}`);
}