123456789101112131415161718192021 |
- import router from '/@/router';
- import { createProgressGuard } from './progressGuard';
- import { createPermissionGuard } from './permissionGuard';
- import { createPageLoadingGuard } from './pageLoadingGuard';
- import { createMessageGuard } from './messageGuard';
- import { createScrollGuard } from './scrollGuard';
- import { createHttpGuard } from './httpGuard';
- import { createPageGuard } from './pageGuard';
- import { createStateGuard } from './stateGuard';
- export function setupRouterGuard() {
- createPageGuard(router);
- createPageLoadingGuard(router);
- createHttpGuard(router);
- createScrollGuard(router);
- createMessageGuard(router);
- createProgressGuard(router);
- createPermissionGuard(router);
- createStateGuard(router);
- }
|