变更投入和效果导出优化

This commit is contained in:
2026-09-24 16:53:53 +08:00
parent 354237d278
commit ccfd8cb260
+4 -2
View File
@@ -33,8 +33,10 @@ const levelList = ref<any[]>([]);
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;