修改坡度和曲度公里标选中默认值未还原问题

This commit is contained in:
dong 2023-08-08 10:31:16 +08:00
parent ebe95a45e3
commit da6a739981
2 changed files with 12 additions and 0 deletions

View File

@ -40,6 +40,12 @@ watchEffect(() => {
ks.kilometer = kiloMarkerModel.value.kilometerSystem[i].kilometer;
ks.direction = kiloMarkerModel.value.kilometerSystem[i].direction;
});
} else {
kilometerSystem.forEach((ks) => {
ks.coordinateSystem = '';
ks.kilometer = 0;
ks.direction = 0;
});
}
}
});

View File

@ -40,6 +40,12 @@ watchEffect(() => {
ks.kilometer = kiloMarkerModel.value.kilometerSystem[i].kilometer;
ks.direction = kiloMarkerModel.value.kilometerSystem[i].direction;
});
} else {
kilometerSystem.forEach((ks) => {
ks.coordinateSystem = '';
ks.kilometer = 0;
ks.direction = 0;
});
}
}
});