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

bug fixes

上级 b085fd55
...@@ -37,7 +37,7 @@ const fetchDetail = async () => { ...@@ -37,7 +37,7 @@ const fetchDetail = async () => {
scores = [] scores = []
} }
const myScore = scores.find((item) => item.checker_id == userStore.user.id)?.scores const myScore = scores.find((item) => item.checker_id == userStore.user.id)?.scores
const firstScore = scores[0]?.scores const firstScore = { ...scores[0]?.scores }
Object.assign(scoreDetails, myScore || firstScore || {}) Object.assign(scoreDetails, myScore || firstScore || {})
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论