From cff0dd9b1fb57961156f39694464a0896fdb2c3d Mon Sep 17 00:00:00 2001 From: sc Date: Tue, 9 Aug 2022 10:57:17 +0800 Subject: [PATCH] =?UTF-8?q?FIX=20=E5=9B=BD=E9=99=85=E5=8C=96=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E4=B8=8D=E8=83=BD=E5=8F=8A=E6=97=B6=E5=BA=94=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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')