From e2e344255ffc2e9bc8302ee079386660eb799eaa Mon Sep 17 00:00:00 2001 From: vertoryao Date: Mon, 19 May 2025 12:30:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(@vben/common-ui):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=88=AC=E8=99=AB=20word=20=E6=96=87=E4=BB=B6=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加文件名日志输出,便于调试- 修改下载链接为处理后的 fetchResult.value,确保正确获取文件- 更新文件下载逻辑,使用正确的文件名 --- .../effects/common-ui/src/ui/spider/spider-work-view.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/effects/common-ui/src/ui/spider/spider-work-view.vue b/packages/effects/common-ui/src/ui/spider/spider-work-view.vue index db964f6..b4f7167 100644 --- a/packages/effects/common-ui/src/ui/spider/spider-work-view.vue +++ b/packages/effects/common-ui/src/ui/spider/spider-work-view.vue @@ -182,7 +182,7 @@ const startPolling = async () => { style: { marginLeft: '10px' }, onClick: () => { const link = document.createElement('a'); - link.href = `/spider${download_url}`; + link.href = fetchResult.value; link.download = fetchResult.value; document.body.append(link); link.click(); @@ -261,10 +261,9 @@ const startFetching = async () => { // clearInterval(statusPollingInterval); // } // }); - } catch (error) { + } catch { isFetching.value = false; fetchResult.value = ''; - console.error(error); } } if (props.item.id === 'c736edd0-925d-4877-9223-56aab7342311') {