fix(doc): change index.tpl to avoid pre-compile error

This commit is contained in:
07akioni 2020-01-18 13:33:57 +08:00
parent 4deba40870
commit fc3f0a9f66
4 changed files with 7 additions and 4 deletions

3
demo/demoRouterView.vue Normal file
View File

@ -0,0 +1,3 @@
<template>
<router-view />
</template>

View File

@ -1,7 +1,9 @@
import { Vue, router, i18n } from './init'
import demoRouterView from './demoRouterView'
new Vue({
...demoRouterView,
i18n,
router
}).$mount('#app')

View File

@ -5,8 +5,6 @@
<title>Naive UI</title>
</head>
<body>
<div id="app">
<router-view></router-view>
</div>
<div id="app"></div>
</body>
</html>

View File

@ -1,4 +1,4 @@
import Vue from 'vue/dist/vue'
import Vue from 'vue'
import VueRouter from 'vue-router'
import '../styles/index.scss'
import './styles/markdown.scss'