diff --git a/src/components/draw-app/dialogs/SetTrainLink.vue b/src/components/draw-app/dialogs/SetTrainLink.vue index c1902f7..e1f1e7a 100644 --- a/src/components/draw-app/dialogs/SetTrainLink.vue +++ b/src/components/draw-app/dialogs/SetTrainLink.vue @@ -53,7 +53,7 @@ const props = defineProps({ required: true, }, }); -const connType = ref(0); +const connType = ref(); const connectOptions = ref<{ label: string; value: number }[]>([]); const showLoadTransData = ref(true); @@ -85,7 +85,7 @@ function onCreate() { updateTrainConn({ id: props.trainId + '', simulationId: props.simulationId, - connType: connType.value, + connType: connType.value as number, }) .then(() => { successNotify('列车连接成功!');