fix : 修复项目验收其他文件上传bug
This commit is contained in:
@@ -133,14 +133,13 @@ watch(() => props.showTable, (newVal) => {
|
|||||||
watch(() => props.otherFileList, (newVal) => {
|
watch(() => props.otherFileList, (newVal) => {
|
||||||
console.log('newotherFileList', newVal)
|
console.log('newotherFileList', newVal)
|
||||||
if (props.preview) {
|
if (props.preview) {
|
||||||
if (props.formData.fileList == null) {
|
if (props.formData.fileList.length===0) {
|
||||||
allFileList.value = newVal
|
allFileList.value = newVal
|
||||||
} else {
|
} else {
|
||||||
newVal?.forEach(item => {
|
newVal?.forEach(item => {
|
||||||
allFileList.value.push(item)
|
allFileList.value.push(item)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
allFileList.value = newVal
|
allFileList.value = newVal
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user