feat: HID串口优先ttyUSB并在视频设备名称后显示路径

This commit is contained in:
mofeng-git
2026-02-11 20:45:13 +08:00
parent 74411d354c
commit 6ed1cf5bef
3 changed files with 30 additions and 5 deletions

View File

@@ -1654,7 +1654,7 @@ watch(updateChannel, async () => {
<Label for="video-device">{{ t('settings.videoDevice') }}</Label>
<select id="video-device" v-model="config.video_device" class="w-full h-9 px-3 rounded-md border border-input bg-background text-sm">
<option value="">{{ t('settings.selectDevice') }}</option>
<option v-for="dev in devices.video" :key="dev.path" :value="dev.path">{{ dev.name }}</option>
<option v-for="dev in devices.video" :key="dev.path" :value="dev.path">{{ dev.name }} ({{ dev.path }})</option>
</select>
</div>
<div class="space-y-2">