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';
|
|
|
|
import { authDirective } from '/@/utils/authDirective.ts';
|
2020-12-13 22:46:41 +08:00
|
|
|
|
2021-03-15 12:44:58 +08:00
|
|
|
import ElementPlus from 'element-plus';
|
|
|
|
import 'element-plus/lib/theme-chalk/index.css';
|
|
|
|
import '/@/theme/index.scss';
|
|
|
|
import lang from 'element-plus/lib/locale/lang/zh-cn';
|
|
|
|
import mitt from 'mitt';
|
2020-12-08 18:20:35 +08:00
|
|
|
|
2021-03-15 12:44:58 +08:00
|
|
|
const app = createApp(App);
|
|
|
|
app.use(router).use(store, key).use(ElementPlus, { locale: lang }).mount('#app');
|
|
|
|
app.config.globalProperties.mittBus = mitt();
|
2021-02-05 01:15:37 +08:00
|
|
|
|
2021-03-15 12:44:58 +08:00
|
|
|
authDirective(app);
|