fix: delete mock data

This commit is contained in:
DiamondThree
2023-01-12 14:59:13 +08:00
parent 1eb3553504
commit 14c665757e
2 changed files with 11 additions and 16 deletions

View File

@@ -56,10 +56,16 @@ export const useWorkspaceHelper = () => {
});
};
const deleteWorkSpace = async () => {
currentWorkspace &&
(await dataCenter.deleteWorkspace(currentWorkspace?.id));
};
return {
createWorkspace,
publishWorkspace,
updateWorkspace,
enableWorkspace,
deleteWorkSpace,
};
};