列车连接处理

This commit is contained in:
joylink_fanyuhong 2024-04-29 14:40:34 +08:00
parent 203525e371
commit ac8c193586

View File

@ -53,7 +53,7 @@ const props = defineProps({
required: true,
},
});
const connType = ref<number>(0);
const connType = ref<number | undefined>();
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('列车连接成功!');