Compare commits

..

2 Commits

Author SHA1 Message Date
小杨 ead9ebd6eb fix:加个平均时长判断; 2024-11-26 16:57:03 +08:00
yangws a147c60d78 Merge pull request 'fix:推送分值丢失问题;' (#420) from yangws into main
Reviewed-on: #420
2024-11-26 14:56:06 +08:00
1 changed files with 1 additions and 0 deletions

View File

@ -152,6 +152,7 @@ const getXValue = () => {
watch(() => useOverview.tableList, () => { watch(() => useOverview.tableList, () => {
const time = useOverview.tableList.map(item => Number(item.timelength)) const time = useOverview.tableList.map(item => Number(item.timelength))
if(time.length === 0) return;
const avatarTime = time.reduce((acc, cur) => { const avatarTime = time.reduce((acc, cur) => {
return acc + cur return acc + cur
},0) / time.length },0) / time.length