信号机调整

This commit is contained in:
fan 2023-06-06 16:03:47 +08:00
parent f3abe56ecb
commit 21c1d97465

View File

@ -40,9 +40,9 @@ watch(
);
onMounted(() => {
const platform = drawStore.selectedGraphic as Signal;
if (platform) {
signalModel.copyFrom(platform.saveData());
const signal = drawStore.selectedGraphic as Signal;
if (signal) {
signalModel.copyFrom(signal.saveData());
signalDirection.value = (directionSelect as never)[signalModel.direction];
}
});