fix : 修复项目验收其他文件上传bug

This commit is contained in:
2024-06-03 21:56:20 +08:00
parent 63a6f9b85e
commit 00a2b7a3af

View File

@@ -133,14 +133,13 @@ watch(() => props.showTable, (newVal) => {
watch(() => props.otherFileList, (newVal) => {
console.log('newotherFileList', newVal)
if (props.preview) {
if (props.formData.fileList == null) {
if (props.formData.fileList.length===0) {
allFileList.value = newVal
} else {
newVal?.forEach(item => {
allFileList.value.push(item)
})
}
} else {
allFileList.value = newVal
}