2021-03-15 12:44:58 +08:00
|
|
|
import { createApp } from 'vue';
|
2022-04-18 19:14:38 +08:00
|
|
|
import pinia from '/@/stores/index';
|
2021-03-15 12:44:58 +08:00
|
|
|
import App from './App.vue';
|
|
|
|
import router from './router';
|
2021-06-19 17:49:42 +08:00
|
|
|
import { directive } from '/@/utils/directive';
|
|
|
|
import { i18n } from '/@/i18n/index';
|
2021-12-04 13:32:14 +08:00
|
|
|
import other from '/@/utils/other';
|
2020-12-13 22:46:41 +08:00
|
|
|
|
2021-03-15 12:44:58 +08:00
|
|
|
import ElementPlus from 'element-plus';
|
2021-08-29 18:45:29 +08:00
|
|
|
import 'element-plus/dist/index.css';
|
2021-03-15 12:44:58 +08:00
|
|
|
import '/@/theme/index.scss';
|
|
|
|
import mitt from 'mitt';
|
2021-04-28 17:02:32 +08:00
|
|
|
import VueGridLayout from 'vue-grid-layout';
|
2020-12-08 18:20:35 +08:00
|
|
|
|
2021-03-15 12:44:58 +08:00
|
|
|
const app = createApp(App);
|
2021-12-04 13:32:14 +08:00
|
|
|
|
|
|
|
directive(app);
|
|
|
|
other.elSvg(app);
|
|
|
|
|
2022-04-18 19:14:38 +08:00
|
|
|
app.use(pinia).use(router).use(ElementPlus, { i18n: i18n.global.t }).use(i18n).use(VueGridLayout).mount('#app');
|
2021-04-28 17:02:32 +08:00
|
|
|
|
2021-03-15 12:44:58 +08:00
|
|
|
app.config.globalProperties.mittBus = mitt();
|