处理station台站变化是,对应的图表更新问题

This commit is contained in:
任珮宇 2024-01-24 18:11:58 +08:00
parent 3e5f97f55a
commit 5c73a26d21

View File

@ -346,7 +346,10 @@ export default {
},
stationChange(val) {
if (val.length != 0) {
// this.isDefault = false
if (this.chartLayout.length == 2) {
let index = this.chartLayout.findIndex((item) => item !== val[0])
this.chartLayout.splice(index, 1)
}
if (val.length == 2) {
this.stationOptions.forEach((item) => {
if (!val.includes(item.value)) {