|
@@ -307,7 +307,8 @@ const delUploadData = async (file) => {
|
|
// 如果id存在且文件不在上传状态,调用接口删除文件
|
|
// 如果id存在且文件不在上传状态,调用接口删除文件
|
|
loadingText.value = '删除中...'
|
|
loadingText.value = '删除中...'
|
|
uploadDisabled.value = true
|
|
uploadDisabled.value = true
|
|
- const { error, code, msg } = await (accept.value === 'application/pdf'
|
|
|
|
|
|
+ // const { error, code, msg } = await (accept.value === 'application/pdf'
|
|
|
|
+ const { error, code, msg } = await (!isListFile.value
|
|
? wbsApi.delTabById({ ids: id })
|
|
? wbsApi.delTabById({ ids: id })
|
|
: wbsApi.removeBussFile({ ids: id }))
|
|
: wbsApi.removeBussFile({ ids: id }))
|
|
uploadDisabled.value = false
|
|
uploadDisabled.value = false
|
|
@@ -324,7 +325,7 @@ const delUploadData = async (file) => {
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- // emit('change', { type: 'del' })
|
|
|
|
|
|
+ emit('change', { type: 'success' })
|
|
}
|
|
}
|
|
|
|
|
|
const uploadRemove = () => {
|
|
const uploadRemove = () => {
|