diff --git a/src/pages/department/index.tsx b/src/pages/department/index.tsx index a38734e..4cbcdd6 100644 --- a/src/pages/department/index.tsx +++ b/src/pages/department/index.tsx @@ -149,19 +149,7 @@ export const DepartmentPage: React.FC = () => { if (id === 0) { return; } - const instance = modal.warning({ - title: "操作确认", - centered: true, - content: ( -
- -
- ), - }); department.checkDestroy(id).then((res: any) => { - setTimeout(() => { - instance.destroy(); - }, 500); if ( res.data.children.length === 0 && res.data.courses.length === 0 && diff --git a/src/pages/resource/resource-category/index.tsx b/src/pages/resource/resource-category/index.tsx index a3761e3..610c8d6 100644 --- a/src/pages/resource/resource-category/index.tsx +++ b/src/pages/resource/resource-category/index.tsx @@ -147,19 +147,7 @@ export const ResourceCategoryPage: React.FC = () => { if (id === 0) { return; } - const instance = modal.warning({ - title: "操作确认", - centered: true, - content: ( -
- -
- ), - }); resourceCategory.checkDestroy(id).then((res: any) => { - setTimeout(() => { - instance.destroy(); - }, 500); if ( res.data.children.length === 0 && res.data.courses.length === 0 &&