mirror of
https://gitee.com/niucloud-team/niucloud.git
synced 2025-12-19 12:32:47 +00:00
31 lines
787 B
TypeScript
31 lines
787 B
TypeScript
import { createApp } from 'vue'
|
|
import App from './App.vue'
|
|
import roter from './router'
|
|
import ElementPlus from 'element-plus'
|
|
import pinia from './stores'
|
|
import lang from './lang'
|
|
import directives from './utils/directives'
|
|
import '@/styles/index.scss'
|
|
import { useElementIcon } from './utils/common'
|
|
import 'highlight.js/styles/stackoverflow-light.css';
|
|
import hljs from 'highlight.js/lib/common'
|
|
import hljsVuePlugin from '@highlightjs/vue-plugin'
|
|
import VueUeditorWrap from 'vue-ueditor-wrap'
|
|
|
|
window.hl = hljs
|
|
|
|
async function run() {
|
|
const app = createApp(App)
|
|
app.use(pinia)
|
|
app.use(lang)
|
|
app.use(roter)
|
|
app.use(directives)
|
|
app.use(ElementPlus)
|
|
app.use(hljsVuePlugin)
|
|
app.use(VueUeditorWrap)
|
|
useElementIcon(app)
|
|
app.mount('#app')
|
|
}
|
|
|
|
run()
|