fix(web): 修复初始化向导未应用所选 HID 配置

This commit is contained in:
mofeng-git
2026-09-26 11:46:32 +08:00
parent 0e8c323659
commit f8fb64ad8c
4 changed files with 154 additions and 48 deletions

View File

@@ -107,26 +107,7 @@ export const useAuthStore = defineStore('auth', () => {
}
}
async function setup(data: {
username: string
password: string
video_device?: string
video_format?: string
video_width?: number
video_height?: number
video_fps?: number
hid_backend?: string
hid_ch9329_port?: string
hid_ch9329_baudrate?: number
hid_otg_udc?: string
hid_otg_profile?: string
hid_otg_keyboard_leds?: boolean
msd_enabled?: boolean
encoder_backend?: string
audio_device?: string
ttyd_enabled?: boolean
rustdesk_enabled?: boolean
}) {
async function setup(data: Parameters<typeof systemApi.setup>[0]) {
loading.value = true
error.value = null