mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
22 lines
516 B
JavaScript
22 lines
516 B
JavaScript
|
|
import { Vue, i18n } from './init'
|
|
import debugRouteMixin from './routes/debugRouteMixin'
|
|
import hljs from './hljs'
|
|
import demoRouterView from './demoRouterView'
|
|
import NaiveUI from '../src/index'
|
|
import '../src/_styles/index.scss'
|
|
import { routes, childRoutes } from './routes/routes'
|
|
import createRouter from './routes/router'
|
|
|
|
debugRouteMixin(routes, childRoutes)
|
|
const router = createRouter(Vue, routes)
|
|
|
|
Vue.use(NaiveUI)
|
|
NaiveUI.setHljs(hljs)
|
|
|
|
new Vue({
|
|
...demoRouterView,
|
|
router,
|
|
i18n
|
|
}).$mount('#app')
|