2023-11-10 17:45:10 +08:00
|
|
|
import { createApp, defineComponent, ref, reactive } from 'vue'
|
|
|
|
|
|
|
|
import main from './main.vue'
|
|
|
|
import router from './router'
|
2023-12-14 18:29:40 +08:00
|
|
|
import { createPinia } from 'pinia'
|
2023-11-10 17:45:10 +08:00
|
|
|
import ElementPlus from 'element-plus';
|
|
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
2023-12-28 10:39:36 +08:00
|
|
|
import { ElDialog } from 'element-plus'
|
2023-12-27 16:49:37 +08:00
|
|
|
import TableAbility from '@/components/table-ability.vue'
|
2023-11-10 17:45:10 +08:00
|
|
|
|
2024-02-22 20:48:08 +08:00
|
|
|
|
2023-11-10 17:45:10 +08:00
|
|
|
import 'element-plus/dist/index.css';
|
|
|
|
import './assets/css/global.scss';
|
2023-12-14 18:29:40 +08:00
|
|
|
import './assets/font/iconfont.css';
|
2024-03-31 13:13:41 +08:00
|
|
|
import '@/assets/css/custom-element.scss';
|
|
|
|
import '@/assets/css/animastore.css';
|
|
|
|
import '../permisstion';
|
2023-11-10 17:45:10 +08:00
|
|
|
|
2023-12-28 10:39:36 +08:00
|
|
|
// import '@/utils/debugger'
|
2023-12-20 14:54:01 +08:00
|
|
|
|
2023-12-14 18:29:40 +08:00
|
|
|
const pinia = createPinia()
|
|
|
|
const app = createApp(main)
|
|
|
|
|
2023-12-28 10:39:36 +08:00
|
|
|
ElDialog.props.draggable.default = true
|
|
|
|
|
2023-12-14 18:29:40 +08:00
|
|
|
app.use(pinia)
|
2023-11-10 17:45:10 +08:00
|
|
|
|
|
|
|
app.use(router)
|
|
|
|
.use(ElementPlus) // ElementPlus 全局引入
|
|
|
|
|
2023-12-28 10:39:36 +08:00
|
|
|
app.component('el-dialog', ElDialog)
|
2023-12-27 16:49:37 +08:00
|
|
|
app.component('TableAbility', TableAbility)
|
2023-11-10 17:45:10 +08:00
|
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
|
app.component(key, component)
|
|
|
|
}
|
|
|
|
|
|
|
|
app.mount('#app')
|