Browse Source

修改类型

hlp 1 năm trước cách đây
mục cha
commit
52305831d3

+ 1 - 1
fhKeeper/formulahousekeeper/customerBuler-crm/src/store/Store.d.ts

@@ -11,7 +11,7 @@ type SotreActions = {
   setRouters(arr: any): void;
   setAsyncRoutesMark(val: boolean): void;
   setValue(val: any, key: keyof SotreState): void;
-  getPathConfig(path: string): RouteRecordRaw | any;
+  getRouterConfig(path: string): RouteRecordRaw | any;
   getFunctionList(path: string): any[];
   clearStore(): void;
 };

+ 3 - 3
fhKeeper/formulahousekeeper/customerBuler-crm/src/store/index.ts

@@ -31,11 +31,11 @@ export const useStore = defineStore<
     setValue(val, key) {
       this[key] = val;
     },
-    getPathConfig(path: string) {
+    getRouterConfig(path) {
       return this.routers.find((item) => item.path === path);
     },
-    getFunctionList(path: string) {
-      const config = this.getPathConfig(path);
+    getFunctionList(path) {
+      const config = this.getRouterConfig(path);
       if (!config) {
         return [];
       }