Browse Source

Update index.tsx

lex 10 months ago
parent
commit
73a0769bea
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/views/xiaoku-ai/index.tsx

+ 1 - 4
src/views/xiaoku-ai/index.tsx

@@ -177,10 +177,7 @@ export default defineComponent({
     const formatParentId = (id: any, list: any, ids = [] as any) => {
       for (const item of list) {
         if (item.children && item.children.length > 0) {
-          const cIds: any = formatParentId(id, item.children, [
-            ...ids,
-            item.id
-          ]);
+          const cIds: any = formatParentId(id, item.children, [...ids]);
           if (cIds.includes(id)) {
             return cIds;
           }