mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-04-07 05:47:38 +00:00
init
This commit is contained in:
19
frontend/src/composables/permission/usePermissionDelete.ts
Normal file
19
frontend/src/composables/permission/usePermissionDelete.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import client from "@/api/client";
|
||||
|
||||
const usePermissionDelete = () => {
|
||||
const deletePermission = async (id: number) => {
|
||||
await client.DELETE("/iam/permission", {
|
||||
params: {
|
||||
query: {
|
||||
permissionId: id,
|
||||
},
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
return {
|
||||
deletePermission,
|
||||
};
|
||||
};
|
||||
|
||||
export default usePermissionDelete;
|
||||
Reference in New Issue
Block a user