fix: 禁用路段方向选择器,确保用户无法修改方向设置
This commit is contained in:
parent
6ad9743e98
commit
5f59225aed
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user