运行信息默认数据

This commit is contained in:
ym1026
2025-09-17 15:34:01 +08:00
parent 27ca787fc5
commit 94d6d8a8db
2 changed files with 2 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ export default {
handler(newVal, oldVal) {
if (newVal !== oldVal) {
this.list.forEach((item) => {
item.value = this.propsTotal[item.key]
item.value = this.propsTotal[item.key]||0
})
}
},

View File

@@ -74,7 +74,7 @@ export default {
const dates = data.map((item) => item.station_name)
const values = []
keys.forEach((item, index) => {
values[index] = data.map((dataValue) => dataValue[keys[index]])
values[index] = data.map((dataValue) => dataValue[keys[index]])||0
})
return {