mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-10-28 16:30:48 +08:00
feat: 完善 ATX 功能逻辑与控件样式
This commit is contained in:
@@ -50,6 +50,7 @@ interface AtxState {
|
||||
backend: string
|
||||
initialized: boolean
|
||||
powerOn: boolean
|
||||
hddStatus: 'active' | 'inactive' | 'unknown'
|
||||
error: string | null
|
||||
}
|
||||
|
||||
@@ -121,6 +122,7 @@ export interface AtxDeviceInfo {
|
||||
backend: string
|
||||
initialized: boolean
|
||||
power_on: boolean
|
||||
hdd_status: 'active' | 'inactive' | 'unknown'
|
||||
error: string | null
|
||||
}
|
||||
|
||||
@@ -235,6 +237,7 @@ export const useSystemStore = defineStore('system', () => {
|
||||
backend: state.backend,
|
||||
initialized: state.initialized,
|
||||
powerOn: state.power_status === 'on',
|
||||
hddStatus: state.hdd_status,
|
||||
error: null,
|
||||
}
|
||||
return state
|
||||
@@ -376,6 +379,7 @@ export const useSystemStore = defineStore('system', () => {
|
||||
backend: data.atx.backend,
|
||||
initialized: data.atx.initialized,
|
||||
powerOn: data.atx.power_on,
|
||||
hddStatus: data.atx.hdd_status,
|
||||
error: data.atx.error,
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user