sun-chaochao 3 лет назад
Родитель
Сommit
9e7309b9b4
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/pages/system/Role/Edit/Permission/Allocate/MenuPermission.tsx

+ 2 - 2
src/pages/system/Role/Edit/Permission/Allocate/MenuPermission.tsx

@@ -120,7 +120,7 @@ const MenuPermission = (props: Props) => {
                   enabled: data.includes(i.id),
                 };
               });
-              const clen = (value?.children || []).filter((i) => i.check !== 3).length;
+              const clen = (value?.children || []).filter((i: any) => i.check !== 3).length;
               let check: number = 3;
               if (data.length + clen === 0) {
                 check = 3;
@@ -211,7 +211,7 @@ const MenuPermission = (props: Props) => {
               level={(props?.level || 0) + 1}
               value={item}
               change={(data: any) => {
-                const children = (value?.children || []).map((i) => {
+                const children = (value?.children || []).map((i: any) => {
                   if (data.id === i.id) {
                     return data;
                   }