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;