mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-04-30 01:46:37 +08:00
feat(web): 改为通过 WebSocket 推送 ttyd 状态并清理轮询与冗余接口
This commit is contained in:
@@ -118,12 +118,18 @@ export interface AudioDeviceInfo {
|
||||
error: string | null
|
||||
}
|
||||
|
||||
export interface TtydDeviceInfo {
|
||||
available: boolean
|
||||
running: boolean
|
||||
}
|
||||
|
||||
export interface DeviceInfoEvent {
|
||||
video: VideoDeviceInfo
|
||||
hid: HidDeviceInfo
|
||||
msd: MsdDeviceInfo | null
|
||||
atx: AtxDeviceInfo | null
|
||||
audio: AudioDeviceInfo | null
|
||||
ttyd: TtydDeviceInfo
|
||||
}
|
||||
|
||||
export const useSystemStore = defineStore('system', () => {
|
||||
|
||||
Reference in New Issue
Block a user