fix: 禁用路段方向选择器,确保用户无法修改方向设置

This commit is contained in:
xudan 2025-07-10 11:06:16 +08:00
parent 6ad9743e98
commit 5f59225aed

View File

@ -74,7 +74,11 @@ const route = computed<MapRouteInfo | null>(() => {
<a-typography-text>{{ $t('路段方向') }}:</a-typography-text>
</a-col>
<a-col flex="auto">
<a-select :value="route.direction || 1" @change="editor.updateRoute(id, { direction: <-1 | 1>$event })">
<a-select
:value="route.direction || 1"
@change="editor.updateRoute(id, { direction: <-1 | 1>$event })"
disabled
>
<a-select-option :value="1">{{ editor.getRouteLabel(id, 1) }}</a-select-option>
<a-select-option :value="-1">{{ editor.getRouteLabel(id, -1) }}</a-select-option>
</a-select>