|
|
|
@ -1143,7 +1143,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 附件删除 |
|
|
|
|
handleRemove (e, fileList) { |
|
|
|
|
e.id ? this.$post(this.api.delContentFile, Util.rsa(e.id)).then(res => { |
|
|
|
|
e.id ? this.$post(`${this.api.delContentFile}?id=${e.id}`).then(res => { |
|
|
|
|
this.form.fileList = fileList |
|
|
|
|
}).catch(res => { }) : (this.form.fileList = fileList) |
|
|
|
|
}, |
|
|
|
@ -1158,7 +1158,6 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 附件上传之前的钩子 |
|
|
|
|
fileBeforeUpload (file, type) { |
|
|
|
|
console.log("🚀 ~ file: index.vue:1484 ~ fileBeforeUpload ~ file:", file) |
|
|
|
|
if (type) { |
|
|
|
|
const { size, name } = file |
|
|
|
|
const ext = name.substring(name.lastIndexOf('.') + 1) |
|
|
|
|