默认语言问题

This commit is contained in:
浅念
2025-03-22 09:36:48 +08:00
parent 02b8800bc6
commit 41a042e4b6
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -130,9 +130,9 @@
},
//语言切换事件
confirmlang(e) {
// uni.setLocale(e.value[0].id)
uni.setLocale(e.value[0].id)
this.$i18n.locale = e.value[0].id
uni.setStorageSync('i18locale', e.value[0].id);
// uni.setStorageSync('i18locale', e.value[0].id);
this.showlang = false
this.columns =[
[{
+2 -1
View File
@@ -106,8 +106,9 @@
},
//语言切换事件
confirmlang(e) {
uni.setLocale(e.value[0].id)
this.$i18n.locale = e.value[0].id
uni.setStorageSync('i18locale', e.value[0].id);
// uni.setStorageSync('i18locale', e.value[0].id);
this.language = e.value[0].id
this.showlang = false
this.columns =[