fix : 修复附件上传
This commit is contained in:
@@ -114,9 +114,14 @@ watch(() => props.showTable, (newVal) => {
|
||||
watch(() => props.otherFileList, (newVal) => {
|
||||
console.log('newotherFileList',newVal)
|
||||
if (props.preview) {
|
||||
newVal?.forEach(item => {
|
||||
allFileList.value.push(item)
|
||||
})
|
||||
if(props.formData.fileList==null){
|
||||
allFileList.value=newVal
|
||||
}else {
|
||||
newVal?.forEach(item => {
|
||||
allFileList.value.push(item)
|
||||
})
|
||||
}
|
||||
|
||||
}else {
|
||||
allFileList.value=newVal
|
||||
}
|
||||
@@ -124,9 +129,9 @@ watch(() => props.otherFileList, (newVal) => {
|
||||
watch(() => props.formData.fileList, (newVal) => {
|
||||
console.log('newVal-fileList',newVal)
|
||||
if (props.preview) {
|
||||
newVal?.forEach(item => {
|
||||
allFileList.value.push(item)
|
||||
})
|
||||
newVal?.forEach(item => {
|
||||
allFileList.value.push(item)
|
||||
})
|
||||
}
|
||||
}, {deep: true})
|
||||
watch(() => props.formData.singleFile, (newVal) => {
|
||||
|
||||
Reference in New Issue
Block a user