Skip to content

Commit 8ee1719

Browse files
authored
Update spinRoute.js
1 parent a56dd29 commit 8ee1719

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/router/spinRoute.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*
22
使vue-router懒加载时可以显示一个加载提示,避免网速慢时无响应
33
用法:
4-
const stage3 = () => {
5-
spinRoute.show();
6-
return import('../views/stage3/stage3.vue').then(spinRoute.resolve);
4+
const route = {
5+
path: '/page-layout',
6+
component: () => spinRoute.require(import('./pageLayout/pageLayout.vue'))
77
};
88
*/
99

0 commit comments

Comments
 (0)