From 34b151c3b48ae69d9d460c52c2bbd8091ca544a4 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Wed, 23 Oct 2024 14:34:26 +0800
Subject: [PATCH] 首页 右上角语言按钮
---
src/page/authentication/components/nationalityList.vue | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/page/authentication/components/nationalityList.vue b/src/page/authentication/components/nationalityList.vue
index c988bf5..f516631 100644
--- a/src/page/authentication/components/nationalityList.vue
+++ b/src/page/authentication/components/nationalityList.vue
@@ -172,6 +172,9 @@
mounted() {
// this.$emit('excountry', this.countries[this.countryCode])
this.language = this.$i18n.locale
+ if(this.language=='ko'){
+ this.language = 'Korean'
+ }
this.countriesFind = this.countries[this.language]
this.getData();
},
@@ -186,6 +189,9 @@
this.isShow = true;
},
getData() {
+ if(this.language=='ko'){
+ this.language = 'Korean'
+ }
let us_name = this.countries[this.language]['us']['name'];
this.$emit('getName', us_name, 'us', 1);
},
--
Gitblit v1.9.3