2025-03-05 23:13:24 +08:00
|
|
|
import 'element-ui/lib/theme-chalk/index.css';
|
2025-04-05 20:19:28 +08:00
|
|
|
import 'normalize.css/normalize.css'; // A modern alternative to CSS resets
|
|
|
|
|
import Vue from 'vue';
|
2025-09-15 11:32:57 +08:00
|
|
|
import ElementUI from 'element-ui';
|
2025-04-05 20:19:28 +08:00
|
|
|
import App from './App.vue';
|
|
|
|
|
import router from './router';
|
|
|
|
|
import store from './store';
|
2025-09-11 17:10:50 +08:00
|
|
|
import i18n from './i18n';
|
2025-04-05 20:19:28 +08:00
|
|
|
import './styles/global.scss';
|
2025-04-15 04:03:28 +08:00
|
|
|
import { register as registerServiceWorker } from './registerServiceWorker';
|
2025-03-05 23:13:24 +08:00
|
|
|
|
2025-09-11 17:10:50 +08:00
|
|
|
// 创建事件总线,用于组件间通信
|
|
|
|
|
Vue.prototype.$eventBus = new Vue();
|
|
|
|
|
|
2025-03-05 23:13:24 +08:00
|
|
|
Vue.use(ElementUI);
|
2025-04-02 15:38:04 +08:00
|
|
|
|
2025-03-05 23:13:24 +08:00
|
|
|
Vue.config.productionTip = false
|
|
|
|
|
|
2025-04-15 04:03:28 +08:00
|
|
|
// 注册Service Worker
|
|
|
|
|
registerServiceWorker();
|
|
|
|
|
|
|
|
|
|
// 创建Vue实例
|
2025-03-05 23:13:24 +08:00
|
|
|
new Vue({
|
|
|
|
|
router,
|
|
|
|
|
store,
|
2025-09-11 17:10:50 +08:00
|
|
|
i18n,
|
2025-03-05 23:13:24 +08:00
|
|
|
render: function (h) { return h(App) }
|
|
|
|
|
}).$mount('#app')
|