#295
Showing
1 changed file
with
5 additions
and
2 deletions
| ... | @@ -62,6 +62,9 @@ export default { | ... | @@ -62,6 +62,9 @@ export default { |
| 62 | } | 62 | } |
| 63 | return false; | 63 | return false; |
| 64 | }, | 64 | }, |
| 65 | lan() { | ||
| 66 | return this.$i18n.locale; | ||
| 67 | }, | ||
| 65 | i18n() { | 68 | i18n() { |
| 66 | return this.$i18n.messages && this.$i18n.locale ? this.$i18n.messages[this.$i18n.locale] : {}; | 69 | return this.$i18n.messages && this.$i18n.locale ? this.$i18n.messages[this.$i18n.locale] : {}; |
| 67 | }, | 70 | }, |
| ... | @@ -179,14 +182,14 @@ export default { | ... | @@ -179,14 +182,14 @@ export default { |
| 179 | } else { | 182 | } else { |
| 180 | clearInterval(item.intervial); | 183 | clearInterval(item.intervial); |
| 181 | item.intervial = false; | 184 | item.intervial = false; |
| 182 | item.err = "失败"; | 185 | item.err = this.lan == 'en' ? "Fail" : this.lan == 'tc' ? "失敗" : "失败"; |
| 183 | this.$set(this, "images", this.images); | 186 | this.$set(this, "images", this.images); |
| 184 | this.refreshUploadNumber(); | 187 | this.refreshUploadNumber(); |
| 185 | } | 188 | } |
| 186 | }).catch(err => { | 189 | }).catch(err => { |
| 187 | clearInterval(item.intervial); | 190 | clearInterval(item.intervial); |
| 188 | item.intervial = false; | 191 | item.intervial = false; |
| 189 | item.err = "失败"; | 192 | item.err = this.lan == 'en' ? "Fail" : this.lan == 'tc' ? "失敗" : "失败"; |
| 190 | this.$set(this, "images", this.images); | 193 | this.$set(this, "images", this.images); |
| 191 | this.refreshUploadNumber(); | 194 | this.refreshUploadNumber(); |
| 192 | }); | 195 | }); | ... | ... |
-
Please register or sign in to post a comment