diff --git a/src/utils/other.ts b/src/utils/other.ts index 251f19b..3cd5bd5 100644 --- a/src/utils/other.ts +++ b/src/utils/other.ts @@ -278,9 +278,13 @@ export function postDownBlobFile(url: any, data: any, fileName: string) { descs: data?.descs ?? [], }, data, - }).then((response) => { - handleBlobFile(response, fileName) }) + .then((response) => { + handleBlobFile(response, fileName) + }) + .catch((error) => { + useMessage().error(error.msg || "下载失败") + }) } /**