瀏覽代碼

fix typecheck

Michael Wang 3 年之前
父節點
當前提交
e6c03fc9c4
共有 1 個文件被更改,包括 1 次插入2 次删除
  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 } }
   );
 }