fix: 合并路由守卫中重复的钩子

This commit is contained in:
pany 2023-09-01 14:40:28 +08:00
parent 2e28d0db26
commit 65530215e0

View File

@ -73,9 +73,6 @@ router.beforeEach(async (to, _from, next) => {
router.afterEach((to) => {
setRouteChange(to)
})
router.afterEach((to) => {
setTitle(to.meta.title)
NProgress.done()
})