Store.d.ts 513 B

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