mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 03:44:48 +00:00
[Doc] sync render doc for search crawler
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import Vue from 'vue';
|
||||
import VueRouter from 'vue-router';
|
||||
import VantDoc, { progress } from '@vant/doc';
|
||||
import VantDoc from '@vant/doc';
|
||||
import App from './DocsApp';
|
||||
import routes from './router';
|
||||
import { isMobile } from './utils';
|
||||
@@ -16,13 +16,11 @@ router.beforeEach((route, redirect, next) => {
|
||||
if (isMobile) {
|
||||
location.replace('mobile.html' + location.hash);
|
||||
}
|
||||
progress.start();
|
||||
document.title = route.meta.title || document.title;
|
||||
next();
|
||||
});
|
||||
|
||||
router.afterEach(() => {
|
||||
progress.done();
|
||||
window.scrollTo(0, 0);
|
||||
Vue.nextTick(() => window.syncPath());
|
||||
});
|
||||
|
Reference in New Issue
Block a user