测试bug修改
This commit is contained in:
@@ -106,7 +106,10 @@
|
||||
}
|
||||
},
|
||||
// #endif
|
||||
|
||||
beforeRemove: {
|
||||
type: Function,
|
||||
default: () => {}
|
||||
},
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
@@ -514,7 +517,12 @@
|
||||
* 删除文件
|
||||
* @param {Object} index
|
||||
*/
|
||||
delFile(index) {
|
||||
async delFile(index) {
|
||||
let res = await this.beforeRemove({
|
||||
tempFile: this.files[index],
|
||||
tempFilePath: this.files[index].url
|
||||
})
|
||||
if (res === false) return
|
||||
this.$emit('delete', {
|
||||
tempFile: this.files[index],
|
||||
tempFilePath: this.files[index].url
|
||||
@@ -569,6 +577,7 @@
|
||||
let newFilesData = []
|
||||
files.forEach(v => {
|
||||
newFilesData.push({
|
||||
...v,
|
||||
extname: v.extname,
|
||||
fileType: v.fileType,
|
||||
image: v.image,
|
||||
|
||||
Reference in New Issue
Block a user