fix: 合并路由守卫中重复的钩子
This commit is contained in:
@@ -73,9 +73,6 @@ router.beforeEach(async (to, _from, next) => {
|
||||
|
||||
router.afterEach((to) => {
|
||||
setRouteChange(to)
|
||||
})
|
||||
|
||||
router.afterEach((to) => {
|
||||
setTitle(to.meta.title)
|
||||
NProgress.done()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user