mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-18 12:34:25 +08:00
fix(doc): change index.tpl to avoid pre-compile error
This commit is contained in:
parent
4deba40870
commit
fc3f0a9f66
3
demo/demoRouterView.vue
Normal file
3
demo/demoRouterView.vue
Normal file
@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<router-view />
|
||||
</template>
|
@ -1,7 +1,9 @@
|
||||
|
||||
import { Vue, router, i18n } from './init'
|
||||
import demoRouterView from './demoRouterView'
|
||||
|
||||
new Vue({
|
||||
...demoRouterView,
|
||||
i18n,
|
||||
router
|
||||
}).$mount('#app')
|
||||
|
@ -5,8 +5,6 @@
|
||||
<title>Naive UI</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<router-view></router-view>
|
||||
</div>
|
||||
<div id="app"></div>
|
||||
</body>
|
||||
</html>
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user