diff --git a/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageForm.vue b/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageForm.vue index 659cef6c..a529b66d 100644 --- a/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageForm.vue +++ b/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageForm.vue @@ -448,8 +448,10 @@ const handleDeleteAttachment = async (index, type) => { } // 下载文件 const downloadAttachment = async (name, url) => { - const data = await downloadFile(url) - download.any(data, name); + if(url){ + const data = await downloadFile(url) + download.any(data, name); + } } // ====================附件信息 结束======================================= diff --git a/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageOut.vue b/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageOut.vue index ef015144..2d2b6dbb 100644 --- a/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageOut.vue +++ b/mes-ui/mes-ui-admin-vue3/src/views/heli/storage/StorageOut.vue @@ -426,8 +426,10 @@ const handleDeleteAttachment = async (index, type) => { } // 下载文件 const downloadAttachment = async (name, url) => { - const data = await downloadFile(url) - download.any(data, name); + if(url){ + const data = await downloadFile(url) + download.any(data, name); + } } // ====================附件信息 结束=======================================