Compare commits
2 Commits
a0477a18df
...
ead9ebd6eb
Author | SHA1 | Date |
---|---|---|
小杨 | ead9ebd6eb | |
yangws | a147c60d78 |
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue