Doc: improve iframe load speed

This commit is contained in:
陈嘉涵
2017-09-04 13:01:58 +08:00
parent 8a951895f8
commit 225df48ba5
9 changed files with 83 additions and 43 deletions
+7 -1
View File
@@ -18,7 +18,7 @@ Vue.use(VueRouter);
const routesConfig = routes(true);
routesConfig.push({
path: '/',
component: DemoList.default || DemoList
component: DemoList
});
const router = new VueRouter({
mode: 'history',
@@ -33,6 +33,12 @@ router.beforeEach((to, from, next) => {
next();
});
router.afterEach(() => {
window.syncPath();
});
window.vueRouter = router;
new Vue({ // eslint-disable-line
render: h => h(App),
router