From 4bc329686bfc2f7bd0ce468aef7036f8761a6441 Mon Sep 17 00:00:00 2001
From: clll <1320612696@qq.com>
Date: 星期一, 11 九月 2023 08:48:52 +0800
Subject: [PATCH] 添加为null判断

---
 CanadaMes-ui/src/main.js |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/CanadaMes-ui/src/main.js b/CanadaMes-ui/src/main.js
index 8d19ac5..11d1158 100644
--- a/CanadaMes-ui/src/main.js
+++ b/CanadaMes-ui/src/main.js
@@ -8,17 +8,21 @@
 import VueI18n from 'vue-i18n'
 import zhCN from './lang/locales/zh-CN.json' // 涓枃璇█鍖�
 import enUS from './lang/locales/en-US.json' // 鑻辨枃璇█鍖�
+import store from './store'
 
+// import store from './store'
 Vue.use(VueI18n)
 
 const i18n = new VueI18n({
-  locale: 'zh-CN', // 璁剧疆榛樿璇█涓轰腑鏂�
+  locale: 'en-US', 
   messages: {
     'zh-CN': zhCN, // 娉ㄥ唽涓枃璇█鍖�
     'en-US': enUS // 娉ㄥ唽鑻辨枃璇█鍖�
   }
 })
 
+const EventBus = new Vue();
+Vue.prototype.$bus = EventBus;
 Vue.use(ElementUI);
 
 Vue.config.productionTip = false;
@@ -27,9 +31,11 @@
 Vue.prototype.$message = Message;
 // confirm
 Vue.prototype.$confirm = MessageBox.confirm;
-
+Vue.prototype.$tagList = [];
 new Vue({
     router,
     i18n,
+    store,
+
     render: h => h(App)
 }).$mount('#app');

--
Gitblit v1.8.0