mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 02:16:12 +08:00
[Doc] fix router redirect error
This commit is contained in:
parent
267390212b
commit
d4e321ed33
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user