fix : 修复项目验收其他文件上传bug
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user