fix: 关闭 MSD 后保存 HID 配置时先更新 MSD 状态再校验端点预算

saveConfig 中调换 updateMsd 和 updateHid 的调用顺序,确保 HID
校验端点预算时 MSD enabled 状态已是最新值,避免被误判为超限。

Fixes mofeng-git/One-KVM#260
This commit is contained in:
Fucheng Sha
2026-05-16 13:00:49 +08:00
parent 0b9d94f53f
commit dd3f73ae54

View File

@@ -1129,10 +1129,10 @@ async function saveConfig() {
hidUpdate.otg_functions = { ...config.value.hid_otg_functions } hidUpdate.otg_functions = { ...config.value.hid_otg_functions }
hidUpdate.otg_keyboard_leds = config.value.hid_otg_keyboard_leds hidUpdate.otg_keyboard_leds = config.value.hid_otg_keyboard_leds
} }
await configStore.updateHid(hidUpdate)
await configStore.updateMsd({ await configStore.updateMsd({
enabled: config.value.msd_enabled, enabled: config.value.msd_enabled,
}) })
await configStore.updateHid(hidUpdate)
} }
if (activeSection.value === 'msd') { if (activeSection.value === 'msd') {