页面跳转提示条
This commit is contained in:
parent
34a8434278
commit
920d475ad0
@ -131,6 +131,7 @@ const router = createRouter({
|
||||
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
console.log("开始");
|
||||
//进度条开始
|
||||
NProgress.start();
|
||||
//随机增加进度
|
||||
@ -144,5 +145,6 @@ router.beforeEach((to, from, next) => {
|
||||
|
||||
router.afterEach(() => {
|
||||
NProgress.done();
|
||||
console.log("结束");
|
||||
})
|
||||
export default router
|
||||
|
Loading…
x
Reference in New Issue
Block a user