naive-ui/demo/deployment-index.js
2020-09-24 19:06:06 +08:00

20 lines
386 B
JavaScript

import { Vue, i18n } from './init'
import hljs from './hljs'
import demoRouterView from './DemoRouterView'
import naive from '../lib/index'
import './font'
import createRouter from './routes/router'
import { routes } from './routes/routes'
naive.setHljs(hljs)
Vue.use(naive)
const router = createRouter(Vue, routes)
new Vue({
...demoRouterView,
router,
i18n
}).$mount('#app')