Vben
authored
|
1
|
import router from '/@/router';
|
vben
authored
|
2
|
|
|
3
4
5
|
import { createProgressGuard } from './progressGuard';
import { createPermissionGuard } from './permissionGuard';
import { createPageLoadingGuard } from './pageLoadingGuard';
|
vben
authored
|
6
7
8
9
|
import { createMessageGuard } from './messageGuard';
import { createScrollGuard } from './scrollGuard';
import { createHttpGuard } from './httpGuard';
import { createPageGuard } from './pageGuard';
|
vben
authored
|
10
|
import { createStateGuard } from './stateGuard';
|
vben
authored
|
11
|
|
Vben
authored
|
12
13
14
15
16
17
18
19
20
21
|
export function setupRouterGuard() {
createPageGuard(router);
createPageLoadingGuard(router);
createHttpGuard(router);
createScrollGuard(router);
createMessageGuard(router);
createProgressGuard(router);
createPermissionGuard(router);
createStateGuard(router);
}
|