mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
add progress bar when loading docs
This commit is contained in:
@@ -29,10 +29,6 @@ const router = new VueRouter({
|
||||
});
|
||||
|
||||
router.beforeEach((route, redirect, next) => {
|
||||
if (route.path !== '/') {
|
||||
window.scrollTo(0, 0);
|
||||
}
|
||||
|
||||
const pathname = '/zanui/vue/examples';
|
||||
if (isMobile()) {
|
||||
window.location.replace(pathname);
|
||||
|
Reference in New Issue
Block a user