vben
authored
|
1
|
import { Router } from 'vue-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
10
|
import { createTitleGuard } from './titleGuard';
import { createMessageGuard } from './messageGuard';
import { createScrollGuard } from './scrollGuard';
import { createHttpGuard } from './httpGuard';
import { createPageGuard } from './pageGuard';
|
vben
authored
|
11
|
|
|
12
|
export function createGuard(router: Router) {
|
vben
authored
|
13
14
15
16
17
|
createPageGuard(router);
createHttpGuard(router);
createScrollGuard(router);
createMessageGuard(router);
createTitleGuard(router);
|
vben
authored
|
18
|
createPageLoadingGuard(router);
|
vben
authored
|
19
|
createProgressGuard(router);
|
|
20
21
|
createPermissionGuard(router);
}
|