fix: 将电源管理选项自动隐藏修改为手动控制,避免 WOL 功能无法显示 #289

This commit is contained in:
mofeng-git
2026-08-07 15:49:58 +08:00
parent 16400df182
commit 4530d8663d
4 changed files with 20 additions and 10 deletions

View File

@@ -59,12 +59,11 @@ const isCh9329Backend = computed(() => hidBackend.value.includes('ch9329'))
const showMsd = computed(() => {
return !!systemStore.msd?.available && !isCh9329Backend.value
})
const showAtx = computed(() => systemStore.atx?.available === true)
const props = defineProps<{
mouseMode?: 'absolute' | 'relative'
videoMode?: VideoMode
ttydRunning?: boolean
showPower?: boolean
showTerminal?: boolean
showComputerUse?: boolean
showPasteText?: boolean
@@ -72,6 +71,7 @@ const props = defineProps<{
scaleMode?: VideoScaleMode
sourceSizeAvailable?: boolean
}>()
const showAtx = computed(() => props.showPower !== false)
const showStats = computed(() => (props.videoMode ?? 'mjpeg') !== 'mjpeg')
const showPasteText = computed(() => props.showPasteText !== false)
const showMic = computed(() => props.showMic === true)