bugfix: 修复灾毁文件上传组件bug
This commit is contained in:
parent
bf86b7d073
commit
fc299b8320
@ -165,10 +165,10 @@ const afterRead = async (options) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const removeFile = (_file, index) => {
|
const removeFile = (_file, options) => {
|
||||||
emit(
|
emit(
|
||||||
'update:modelValue',
|
'update:modelValue',
|
||||||
props.modelValue.filter((_, currentIndex) => currentIndex !== index)
|
props.modelValue.filter((_, currentIndex) => currentIndex !== options.index)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user