diff --git a/src/App.vue b/src/App.vue index 0a21908b..ed73c22b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@ @@ -12,7 +12,6 @@ data() { return { config: { - locale: this.$i18n.messages[this.$i18n.locale].el, size: "default", zIndex: 2000, button: { @@ -21,6 +20,11 @@ } } }, + computed: { + locale(){ + return this.$i18n.messages[this.$i18n.locale].el + }, + }, created() { //设置主题颜色 const app_color = this.$CONFIG.COLOR || this.$TOOL.data.get('APP_COLOR')