update doc

This commit is contained in:
陈嘉涵
2017-08-31 10:38:05 +08:00
parent 7574962af6
commit a2a8523da1
6 changed files with 18 additions and 21 deletions

View File

@@ -4,7 +4,6 @@ import App from './ExamplesDocsApp';
import routes from './router.config';
import ZanDoc from 'zan-doc';
import DemoBlock from './components/demo-block';
import 'packages/vant-css/src/reset.css';
const isMobile = (function() {
var platform = navigator.userAgent.toLowerCase();
@@ -14,7 +13,7 @@ const isMobile = (function() {
Vue.use(VueRouter);
Vue.use(ZanDoc);
Vue.component('demo-block', DemoBlock);
Vue.component(DemoBlock.name, DemoBlock);
const routesConfig = routes();
routesConfig.push({
@@ -41,7 +40,7 @@ router.afterEach(() => {
if (!isMobile) {
window.scrollTo(0, 0);
}
})
});
new Vue({ // eslint-disable-line
render: h => h(App),