2021-03-15 12:44:58 +08:00
|
|
|
import { createApp } from 'vue';
|
|
|
|
import App from './App.vue';
|
|
|
|
import router from './router';
|
|
|
|
import { store, key } from './store';
|
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-02 18:07:49 +08:00
|
|
|
import screenShort from 'vue-web-screen-shot';
|
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);
|
|
|
|
|
2021-04-28 17:02:32 +08:00
|
|
|
app
|
|
|
|
.use(router)
|
|
|
|
.use(store, key)
|
2021-12-04 13:32:14 +08:00
|
|
|
.use(ElementPlus, { i18n: i18n.global.t, size: other.globalComponentSize })
|
2021-04-28 17:02:32 +08:00
|
|
|
.use(i18n)
|
|
|
|
.use(screenShort, { enableWebRtc: false })
|
|
|
|
.use(VueGridLayout)
|
|
|
|
.mount('#app');
|
|
|
|
|
2021-03-15 12:44:58 +08:00
|
|
|
app.config.globalProperties.mittBus = mitt();
|