Bladeren bron

fix:修改弹出窗报错问题

xzh 4 jaren geleden
bovenliggende
commit
18cdc22a65
2 gewijzigde bestanden met toevoegingen van 2 en 6 verwijderingen
  1. 1 5
      mobile/src/components/toast/index.vue
  2. 1 1
      mobile/src/store/language/en/manage.js

+ 1 - 5
mobile/src/components/toast/index.vue

@@ -48,7 +48,7 @@
           </div>
         </div>
         <div class="bottom" v-if="toastType==='comfirm'">
-          <span @click="visible=false" class="btn primary">{{language==='zh'?'取消':'Cancel'}}</span>
+          <span @click="visible=false" class="btn primary">{{lang==='zh'?'取消':'Cancel'}}</span>
           <span class="b-line"></span>
           <span class="btn primary" @click="emitCallback">{{diycomfirm||comfirmtxt}}</span>
         </div>
@@ -65,7 +65,6 @@ import binding from './binding'
 import addcart from './addcart'
 import cooperation from './cooperation'
 import loading from './loadingicon'
-import { mapState } from 'vuex'
 let types = {
   warn: '提示',
   error: '错误',
@@ -109,9 +108,6 @@ export default {
     }
   },
   computed: {
-    ...mapState({
-      language: state => state.language.current
-    }),
     typeTxt () {
       return this.lang === 'en' ? typesEn[this.type] : types[this.type]
     },

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

@@ -116,7 +116,7 @@ export default{
       'Supported picture formats: JPG/PNG',
       '512*512 px; less than 1 MB'
     ],
-    isReceive: 'Get the latest 4DKANKAN news and deals',
+    isReceive: 'Get the latest 4DkanKan news and deals',
     recaddress: 'Please be sure to fill in the correct address so as not to delay the receipt',
     fill: 'Please fill in the information completely'