File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function setupCommonGuard(router: Router) {
18
18
// 记录已经加载的页面
19
19
const loadedPaths = new Set < string > ( ) ;
20
20
21
- router . beforeEach ( async ( to ) => {
21
+ router . beforeEach ( ( to ) => {
22
22
to . meta . loaded = loadedPaths . has ( to . path ) ;
23
23
24
24
// 页面加载进度条
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function setupCommonGuard(router: Router) {
18
18
// 记录已经加载的页面
19
19
const loadedPaths = new Set < string > ( ) ;
20
20
21
- router . beforeEach ( async ( to ) => {
21
+ router . beforeEach ( ( to ) => {
22
22
to . meta . loaded = loadedPaths . has ( to . path ) ;
23
23
24
24
// 页面加载进度条
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function setupCommonGuard(router: Router) {
18
18
// 记录已经加载的页面
19
19
const loadedPaths = new Set < string > ( ) ;
20
20
21
- router . beforeEach ( async ( to ) => {
21
+ router . beforeEach ( ( to ) => {
22
22
to . meta . loaded = loadedPaths . has ( to . path ) ;
23
23
24
24
// 页面加载进度条
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function setupCommonGuard(router: Router) {
18
18
// 记录已经加载的页面
19
19
const loadedPaths = new Set < string > ( ) ;
20
20
21
- router . beforeEach ( async ( to ) => {
21
+ router . beforeEach ( ( to ) => {
22
22
to . meta . loaded = loadedPaths . has ( to . path ) ;
23
23
24
24
// 页面加载进度条
You can’t perform that action at this time.
0 commit comments