|
@@ -104,7 +104,7 @@ export default {
|
|
comfirmtxt: '确定',
|
|
comfirmtxt: '确定',
|
|
diycomfirm: '',
|
|
diycomfirm: '',
|
|
isLoaing: false,
|
|
isLoaing: false,
|
|
- lang: localStorage.getItem('language'),
|
|
|
|
|
|
+ lang: localStorage.getItem('language') || 'zh',
|
|
img: this.$cdn + 'images/icon/warn.png'
|
|
img: this.$cdn + 'images/icon/warn.png'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -122,12 +122,12 @@ export default {
|
|
created () {},
|
|
created () {},
|
|
watch: {
|
|
watch: {
|
|
visible: function (newVal) {
|
|
visible: function (newVal) {
|
|
- this.lang = localStorage.getItem('language')
|
|
|
|
|
|
+ this.lang = localStorage.getItem('language') || 'zh'
|
|
this.comfirmtxt = this.lang === 'zh' ? '确定' : 'OK'
|
|
this.comfirmtxt = this.lang === 'zh' ? '确定' : 'OK'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|
|
- this.lang = localStorage.getItem('language')
|
|
|
|
|
|
+ this.lang = localStorage.getItem('language') || 'zh'
|
|
this.comfirmtxt = this.lang === 'zh' ? '确定' : 'OK'
|
|
this.comfirmtxt = this.lang === 'zh' ? '确定' : 'OK'
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|