add progress bar when loading docs

This commit is contained in:
陈嘉涵
2017-08-21 14:06:24 +08:00
parent fa9b879338
commit 6324fa9088
3 changed files with 9 additions and 8 deletions

View File

@@ -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);