提交 537a1fc8 authored 作者: 王鹏飞's avatar 王鹏飞

fix: #3261

上级 31976c55
...@@ -37,7 +37,7 @@ function fetchReport() { ...@@ -37,7 +37,7 @@ function fetchReport() {
async res => { async res => {
report = res.data.detail report = res.data.detail
let detail = [] let detail = []
if (report.score_detail) { if (report.score_detail || report.detail) {
try { try {
detail = JSON.parse(report.score_detail || report.detail) detail = JSON.parse(report.score_detail || report.detail)
form.score_detail = detail.map(item => { form.score_detail = detail.map(item => {
...@@ -49,7 +49,6 @@ function fetchReport() { ...@@ -49,7 +49,6 @@ function fetchReport() {
} catch (error) { } catch (error) {
console.log(error) console.log(error)
await fetchTemplate() await fetchTemplate()
console.log(error)
} }
} else { } else {
await fetchTemplate() await fetchTemplate()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论