mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-06-14 03:32:00 +08:00
fix: 关闭 MSD 后保存 HID 配置时先更新 MSD 状态再校验端点预算
saveConfig 中调换 updateMsd 和 updateHid 的调用顺序,确保 HID 校验端点预算时 MSD enabled 状态已是最新值,避免被误判为超限。 Fixes mofeng-git/One-KVM#260
This commit is contained in:
@@ -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') {
|
||||||
|
|||||||
Reference in New Issue
Block a user