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

@@ -237,6 +237,7 @@ const showTerminalDialog = ref(false)
const featureVisibility = useFeatureVisibility()
const { isDark, toggleTheme } = useTheme()
const terminalAvailable = computed(() => ttydStatus.value?.available !== false)
const showPower = computed(() => featureVisibility.value.power)
const showTerminal = computed(() => terminalAvailable.value && featureVisibility.value.webTerminal)
const showComputerUse = computed(() => featureVisibility.value.computerUse)
const showPasteText = computed(() => featureVisibility.value.pasteText)
@@ -3273,6 +3274,7 @@ onUnmounted(() => {
:mouse-mode="mouseMode"
:video-mode="videoMode"
:ttyd-running="ttydStatus?.running"
:show-power="showPower"
:show-terminal="showTerminal"
:show-computer-use="showComputerUse"
:show-paste-text="showPasteText"