mirror of
https://github.com/PlayEdu/backend
synced 2026-01-07 13:01:40 +08:00
资源分类编辑截断数据
This commit is contained in:
@@ -57,7 +57,9 @@ export const ResourceCategoryUpdatePage: React.FC = () => {
|
|||||||
const checkArr = (categories: any[], id: number) => {
|
const checkArr = (categories: any[], id: number) => {
|
||||||
const arr = [];
|
const arr = [];
|
||||||
for (let i = 0; i < categories[id].length; i++) {
|
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({
|
arr.push({
|
||||||
label: categories[id][i].name,
|
label: categories[id][i].name,
|
||||||
value: categories[id][i].id,
|
value: categories[id][i].id,
|
||||||
|
|||||||
Reference in New Issue
Block a user