mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-09-13 19:14:24 +08:00
feat: 初步支持 USB 网卡桥接;删除 OTG 端点预算管理
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
audioConfigApi,
|
||||
hidConfigApi,
|
||||
msdConfigApi,
|
||||
otgConfigApi,
|
||||
rtspConfigApi,
|
||||
rustdeskConfigApi,
|
||||
streamConfigApi,
|
||||
@@ -24,6 +25,8 @@ import type {
|
||||
HidConfigUpdate,
|
||||
MsdConfig,
|
||||
MsdConfigUpdate,
|
||||
OtgConfigResponse,
|
||||
OtgConfigUpdate,
|
||||
StreamConfigResponse,
|
||||
StreamConfigUpdate,
|
||||
VideoConfig,
|
||||
@@ -525,6 +528,13 @@ export const useConfigStore = defineStore('config', () => {
|
||||
return response
|
||||
}
|
||||
|
||||
async function updateOtg(update: OtgConfigUpdate): Promise<OtgConfigResponse> {
|
||||
const response = await otgConfigApi.update(update)
|
||||
hid.value = response.hid
|
||||
msd.value = response.msd
|
||||
return response
|
||||
}
|
||||
|
||||
async function updateStream(update: StreamConfigUpdate) {
|
||||
const response = await streamConfigApi.update(update)
|
||||
stream.value = response
|
||||
@@ -642,6 +652,7 @@ export const useConfigStore = defineStore('config', () => {
|
||||
updateAudio,
|
||||
updateHid,
|
||||
updateMsd,
|
||||
updateOtg,
|
||||
updateStream,
|
||||
updateWeb,
|
||||
updateAtx,
|
||||
|
||||
Reference in New Issue
Block a user