You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

47 lines
1.2 KiB

import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'; //暗黑模式
//element中文
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import '@/styles/index.scss' // global css
import App from './App.vue'
import { router } from './router'
//elementui 图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import '@/permission' // permission control
//自定义指令
import { directive } from '@/directive/index'
// 上传附件注册
import { Boot } from '@wangeditor/editor'
import attachmentModule from '@wangeditor/plugin-upload-attachment'
// 注册。要在创建编辑器之前注册,且只能注册一次,不可重复注册。
Boot.registerModule(attachmentModule)
const app = createApp(App)
//挂载自定义指令
directive(app);
app.use(createPinia())
app.use(router)
app.use(ElementPlus, {
locale: zhCn
})
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
app.mount('#app')