12345678910111213141516171819 |
- type SotreState = {
- userInfo: any;
- routers: RouteRecordRaw[];
- asyncRoutesMark: boolean;
- personnelList: any[]
- };
- type SoreGetters = {
- getRoutersList: () => RouteRecordRaw[];
- getToken: () => string;
- };
- type SotreActions = {
- setRouters(arr: any): void;
- setAsyncRoutesMark(val: boolean): void;
- setValue(val: any, key: keyof SotreState): void;
- getRouterConfig(path: string): RouteRecordRaw | any;
- getFunctionList(path: string): any[];
- getUserInfoVal(val: string): any;
- clearStore(): void;
- };
|