mirror of
https://github.com/PlayEdu/backend
synced 2025-07-23 05:59:34 +08:00
资源分类编辑截断数据
This commit is contained in:
parent
27e2e1743a
commit
b21f7d49ad
@ -57,7 +57,9 @@ export const ResourceCategoryUpdatePage: React.FC = () => {
|
||||
const checkArr = (categories: any[], id: number) => {
|
||||
const arr = [];
|
||||
for (let i = 0; i < categories[id].length; i++) {
|
||||
if (!categories[categories[id][i].id]) {
|
||||
if (categories[id][i].id === Number(params.catId)) {
|
||||
console.log("截断");
|
||||
} else if (!categories[categories[id][i].id]) {
|
||||
arr.push({
|
||||
label: categories[id][i].name,
|
||||
value: categories[id][i].id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user