Ver Fonte

fix typecheck

Michael Wang há 3 anos atrás
pai
commit
e6c03fc9c4
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      src/api/mainLayout.ts

+ 1 - 2
src/api/mainLayout.ts

@@ -20,13 +20,12 @@ interface StuMenuOption {
   name: string;
   routeCode: string;
   weight: number;
-  [propName: any]: any;
+  [propName: string]: any;
 }
 /** 获取用户菜单 */
 export async function studentClientMenuApi(rootOrgId: number) {
   return httpApp.get<any, { data: StuMenuOption[] }>(
     "/api/ecs_core/rolePrivilege/getStudentClientMenu",
-    null,
     { params: { rootOrgId } }
   );
 }