默认语言问题
This commit is contained in:
@@ -130,9 +130,9 @@
|
|||||||
},
|
},
|
||||||
//语言切换事件
|
//语言切换事件
|
||||||
confirmlang(e) {
|
confirmlang(e) {
|
||||||
// uni.setLocale(e.value[0].id)
|
uni.setLocale(e.value[0].id)
|
||||||
this.$i18n.locale = 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.showlang = false
|
||||||
this.columns =[
|
this.columns =[
|
||||||
[{
|
[{
|
||||||
|
|||||||
@@ -106,8 +106,9 @@
|
|||||||
},
|
},
|
||||||
//语言切换事件
|
//语言切换事件
|
||||||
confirmlang(e) {
|
confirmlang(e) {
|
||||||
|
uni.setLocale(e.value[0].id)
|
||||||
this.$i18n.locale = 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.language = e.value[0].id
|
||||||
this.showlang = false
|
this.showlang = false
|
||||||
this.columns =[
|
this.columns =[
|
||||||
|
|||||||
Reference in New Issue
Block a user