[Doc] fix router redirect error
This commit is contained in:
@@ -28,7 +28,9 @@ router.afterEach(() => {
|
|||||||
if (router.currentRoute.name) {
|
if (router.currentRoute.name) {
|
||||||
window.scrollTo(0, 0);
|
window.scrollTo(0, 0);
|
||||||
}
|
}
|
||||||
Vue.nextTick(() => window.syncPath());
|
if (!router.currentRoute.redirectedFrom) {
|
||||||
|
Vue.nextTick(() => window.syncPath());
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
window.vueRouter = router;
|
window.vueRouter = router;
|
||||||
|
|||||||
Reference in New Issue
Block a user