0bf4a78c by joe

#295

1 parent c80b9a83
......@@ -62,6 +62,9 @@ export default {
}
return false;
},
lan() {
return this.$i18n.locale;
},
i18n() {
return this.$i18n.messages && this.$i18n.locale ? this.$i18n.messages[this.$i18n.locale] : {};
},
......@@ -179,14 +182,14 @@ export default {
} else {
clearInterval(item.intervial);
item.intervial = false;
item.err = "失败";
item.err = this.lan == 'en' ? "Fail" : this.lan == 'tc' ? "失敗" : "失败";
this.$set(this, "images", this.images);
this.refreshUploadNumber();
}
}).catch(err => {
clearInterval(item.intervial);
item.intervial = false;
item.err = "失败";
item.err = this.lan == 'en' ? "Fail" : this.lan == 'tc' ? "失敗" : "失败";
this.$set(this, "images", this.images);
this.refreshUploadNumber();
});
......