信号机调整

This commit is contained in:
fan 2023-06-06 16:04:44 +08:00
parent 21c1d97465
commit 2863a19b5c

View File

@ -49,9 +49,9 @@ onMounted(() => {
function onUpdate() {
signalModel.direction = (directionSelect as never)[signalDirection.value];
const platform = drawStore.selectedGraphic as Signal;
if (platform) {
drawStore.getDrawApp().updateGraphicAndRecord(platform, signalModel);
const signal = drawStore.selectedGraphic as Signal;
if (signal) {
drawStore.getDrawApp().updateGraphicAndRecord(signal, signalModel);
}
}
</script>