提交 9c772c08 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 b3540c26
...@@ -42,8 +42,8 @@ async function handleRemove(index: number, file: ExperimentRecordFile) { ...@@ -42,8 +42,8 @@ async function handleRemove(index: number, file: ExperimentRecordFile) {
if (!props.data) return if (!props.data) return
let reportDetail: any = [] let reportDetail: any = []
await getExperimentReportCache({ experiment_id: props.data.id }).then(res => { await getExperimentReportCache({ experiment_id: props.data.id }).then(res => {
const report = res.data.report const report = res.data.report || {}
if (report.detail) { if (report?.detail) {
try { try {
reportDetail = JSON.parse(report.detail) reportDetail = JSON.parse(report.detail)
} catch (error) { } catch (error) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论