浏览代码

修改翻译问题

xzh 4 年之前
父节点
当前提交
654f626119
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 3 3
      mobile/src/components/toast/index.vue
  2. 1 1
      pc/src/store/language/en/manage.js

+ 3 - 3
mobile/src/components/toast/index.vue

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

+ 1 - 1
pc/src/store/language/en/manage.js

@@ -102,7 +102,7 @@ export default{
       'Supported picture formats: JPG/PNG',
       'Recommended resolution and size: 512*512 px; less than 1 MB'
     ],
-    isReceive: 'Get the latest 4DKANKAN news and deals'
+    isReceive: 'Get the latest 4DkanKan news and deals'
   },
   myScenes: {
     edit: 'Edit',