From a3c868db4d017961be2d394eadb7d428045d5adc Mon Sep 17 00:00:00 2001
From: lihang <lihang@vci-tech.com>
Date: 星期四, 13 七月 2023 11:13:16 +0800
Subject: [PATCH] 业务类型页面增加生命周期的处理

---
 Source/UBCS-WEB/dist/src/lang/index.js |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/Source/UBCS-WEB/dist/src/lang/index.js b/Source/UBCS-WEB/dist/src/lang/index.js
new file mode 100644
index 0000000..a453e2a
--- /dev/null
+++ b/Source/UBCS-WEB/dist/src/lang/index.js
@@ -0,0 +1,28 @@
+import Vue from 'vue'
+import VueI18n from 'vue-i18n'
+import elementEnLocale from 'element-ui/lib/locale/lang/en' // element-ui lang
+import elementZhLocale from 'element-ui/lib/locale/lang/zh-CN'// element-ui lang
+import enLocale from './en'
+import zhLocale from './zh'
+import { getStore } from '@/util/store'
+Vue.use(VueI18n)
+const Avue = window.AVUE;
+const messages = {
+  en: {
+    ...enLocale,
+    ...elementEnLocale,
+    ...Avue.locale.en,
+  },
+  zh: {
+    ...zhLocale,
+    ...elementZhLocale,
+    ...Avue.locale.zh,
+  }
+}
+
+const i18n = new VueI18n({
+  locale: getStore({ name: 'language' }) || 'zh',
+  messages
+})
+
+export default i18n
\ No newline at end of file

--
Gitblit v1.9.3