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