async handlePreview(file){
try {
const response = await fetch(file.url);
if (!response.ok) {
throw new Error('网络响应错误');
}
const blob = await response.blob();
const url = URL.createObjectURL(blob);
const link = document.createElement('a');
link.href = url;
link.download = file.originalName;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
URL.revokeObjectURL(url);
} catch (error) {
console.error('下载文件失败:', error);
}
},