上传发票 不显示问题

This commit is contained in:
2024-11-06 14:29:48 +08:00
parent 6affb368b7
commit 6720928761

View File

@ -310,7 +310,7 @@
this.$set(this.activeObj, 'imageUrl', '') this.$set(this.activeObj, 'imageUrl', '')
this.$set(this.activeObj, 'fileName', '') this.$set(this.activeObj, 'fileName', '')
if (['pdf','ofd'].indexOf(this.activeObj.fileType) === -1) { if (['pdf','ofd'].indexOf(this.activeObj.fileType) === -1) {
this.activeObj.imageUrl = URL.createObjectURL(file.raw); // this.activeObj.imageUrl = URL.createObjectURL(file.raw);
this.activeObj.imageUrl = res.data.url this.activeObj.imageUrl = res.data.url
this.$set(this.activeObj, 'fileName', file.file.name) this.$set(this.activeObj, 'fileName', file.file.name)
} else { } else {