diff --git a/manager/src/main.js b/manager/src/main.js index cd54c5b1..a136e6b6 100644 --- a/manager/src/main.js +++ b/manager/src/main.js @@ -18,6 +18,7 @@ import util from '@/libs/util' import * as filters from '@/utils/filters' // global filter import liliDialog from '@/views/lili-dialog' +import i18nBox from '@/views/lili-components/i18n-translate' import {md5} from '@/utils/md5.js'; Vue.config.devtools = true; Vue.config.productionTip = false @@ -35,6 +36,7 @@ Vue.use(ViewUI, { }); Vue.component('liliDialog',liliDialog) +Vue.component('i18nBox',i18nBox) diff --git a/manager/src/views/lili-components/i18n-translate.vue b/manager/src/views/lili-components/i18n-translate.vue new file mode 100644 index 00000000..1ff68403 --- /dev/null +++ b/manager/src/views/lili-components/i18n-translate.vue @@ -0,0 +1,51 @@ + + + 语言设定 + + + + + {{item.title || item.name}} + + + + + + + + + + + \ No newline at end of file diff --git a/seller/src/main.js b/seller/src/main.js index 371d9c06..5d9c5016 100644 --- a/seller/src/main.js +++ b/seller/src/main.js @@ -18,6 +18,7 @@ import { } from "@/libs/axios"; import { setStore, getStore, removeStore } from "@/libs/storage"; +import i18nBox from '@/views/lili-components/i18n-translate' import util from "@/libs/util"; @@ -34,7 +35,7 @@ Vue.use(VueLazyload, { }); Vue.use(ViewUI); - +Vue.component('i18nBox',i18nBox) Vue.component("vue-qr", vueQr); //此处将vue-qr添加为全局组件 // 挂载全局使用的方法 diff --git a/seller/src/views/lili-components/i18n-translate.vue b/seller/src/views/lili-components/i18n-translate.vue new file mode 100644 index 00000000..1ff68403 --- /dev/null +++ b/seller/src/views/lili-components/i18n-translate.vue @@ -0,0 +1,51 @@ + + + 语言设定 + + + + + {{item.title || item.name}} + + + + + + + + + + + \ No newline at end of file