From ccfd8cb2607c4dea6f3aef036a08d0eecaa6a153 Mon Sep 17 00:00:00 2001 From: bestlee Date: Thu, 24 Sep 2026 16:53:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4=E6=8A=95=E5=85=A5=E5=92=8C?= =?UTF-8?q?=E6=95=88=E6=9E=9C=E5=AF=BC=E5=87=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/my/effect/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/my/effect/index.vue b/src/views/my/effect/index.vue index 88b9afb..0f3ea1e 100644 --- a/src/views/my/effect/index.vue +++ b/src/views/my/effect/index.vue @@ -33,8 +33,10 @@ const levelList = ref([]); const exportFile = async () => { const {data,error} = await exportEffectApi(); if(!error){ - console.log(data); - // 确保 res 为 Blob 类型(若 API 返回 ArrayBuffer 或原始数据,需适配) + if (!data) { + return; + } + // 确保 res 为 Blob 类型(若 API 返回 ArrayBuffer 或原始数据,需适配) let blob; if (data instanceof Blob) { blob = data;