Store.d.ts 539 B

1234567891011121314151617181920
  1. type SotreState = {
  2. userInfo: any;
  3. routers: RouteRecordRaw[];
  4. asyncRoutesMark: boolean;
  5. personnelList: any[];
  6. departmentList: any[];
  7. };
  8. type SoreGetters = {
  9. getRoutersList: () => RouteRecordRaw[];
  10. getToken: () => string;
  11. };
  12. type SotreActions = {
  13. setRouters(arr: any): void;
  14. setAsyncRoutesMark(val: boolean): void;
  15. setValue(val: any, key: keyof SotreState): void;
  16. getRouterConfig(path: string): RouteRecordRaw | any;
  17. getFunctionList(path: string): any[];
  18. getUserInfoVal(val: string): any;
  19. clearStore(): void;
  20. };