- 删除根目录中重复的 NestJS 配置文件 - 删除 tsconfig.json, tsconfig.build.json, eslint.config.mjs, .prettierrc - 保留 wwjcloud-nest/ 目录中的完整配置 - 避免配置冲突,确保项目结构清晰
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()
|