mirror of
https://github.com/PlayEdu/backend
synced 2025-06-08 03:04:09 +08:00
分类删除优化
This commit is contained in:
parent
08b555afea
commit
c24750dcb2
@ -158,6 +158,15 @@ const ResourceCategoryPage = () => {
|
||||
res.data.videos.length === 0
|
||||
) {
|
||||
delUser(id);
|
||||
} else if (
|
||||
res.data.children &&
|
||||
res.data.children.length === 0 &&
|
||||
res.data.courses &&
|
||||
res.data.courses.length === 0 &&
|
||||
!res.data.images &&
|
||||
!res.data.videos
|
||||
) {
|
||||
delUser(id);
|
||||
} else {
|
||||
if (res.data.children && res.data.children.length > 0) {
|
||||
modal.warning({
|
||||
|
Loading…
x
Reference in New Issue
Block a user