避免重复错误提示

This commit is contained in:
2025-10-20 13:36:25 +08:00
parent cddbbf0c69
commit af84524512

View File

@@ -286,7 +286,7 @@ const handleConfirmGenerate = async () => {
dialogVisible.value = false dialogVisible.value = false
emit('reportGenerated') // 触发事件通知父组件 emit('reportGenerated') // 触发事件通知父组件
} catch (error) { } catch (error) {
ElMessage.error('报告生成失败') // 错误已经在全局拦截器中处理并显示,这里只记录日志
console.error('报告生成错误:', error) console.error('报告生成错误:', error)
} }
} }