Commit d7fa58f4 authored by salitedfish's avatar salitedfish

修复上传同一张图片无法上传bug

parent 14ea8a40
......@@ -211,7 +211,8 @@ export default Vue.extend({
}
this.$toast(item.name);
},
handleFileChange(ref:any) {
async handleFileChange(ref:any) {
console.log('上传了')
console.log(ref);
const ele = this.$refs[ref] as HTMLInputElement;
......@@ -240,7 +241,8 @@ export default Vue.extend({
if (files && files.length >= 1) {
this[this.uploadType == '封面图片'? 'coverstatus':'status'] = uploadStatus.uploading;
this.afterRead(files[0]);
await this.afterRead(files[0]);
ele.value = ''
}
},
...mapMutations("create", {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment