From 77208e5ae6ef61b31484b429a88145ff3eff2007 Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Tue, 10 Oct 2023 14:23:13 +0800
Subject: [PATCH] 修复:下拉框默认文字不显示问题
---
src/components/GMap.vue | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/components/GMap.vue b/src/components/GMap.vue
index 5a39c29..d65f9bf 100644
--- a/src/components/GMap.vue
+++ b/src/components/GMap.vue
@@ -448,7 +448,7 @@
}}</a-col>
<a-col span="15">
<a-select :showArrow="false" v-model:value="aircraSelected" :bordered="false" :options="aircraftList"
- :placeholder="aircraftList.length == 0 || deviceInfo.device?.mode_code == 14 || !deviceInfo.device ? 'N/A' : '请选择'" :disabled="aircraftList.length == 0 ? true : false"
+ :placeholder="aircraftList.length == 0 ? 'N/A' : '请选择'" :disabled="aircraftList.length == 0 ? true : false"
size="small" style="width:100%;background-color: #5d5f61;color: #fff;" @change="selectChange"></a-select>
</a-col>
</a-row>
@@ -799,7 +799,7 @@
const showAircraft = ref(false)
// 飞机视频列表
const aircraftList = ref([])
- const aircraSelected = ref('')
+ const aircraSelected = ref(undefined)
const state = reactive({
currentType: '',
coverIndex: 0
@@ -1051,7 +1051,7 @@
})
// const videoId = deviceInfo.dock.basic_osd?.sub_device?.device_sn + '/' + aircraSelected.value + '/' + 'normal-0'
aircraftList.value = []
- aircraSelected.value = ''
+ aircraSelected.value = undefined
}
// 打开机场操作
const openFlySetting = () => {
@@ -1102,7 +1102,7 @@
aircraftUrl.value = ''
showAircraft.value = false
aircraftList.value = []
- aircraSelected.value = ''
+ aircraSelected.value = undefined
airPortUrl.value = ''
droneList.value = []
if (deviceInfo.dock.basic_osd?.mode_code === 2) {
--
Gitblit v1.9.3