mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-10-28 00:10:50 +08:00
fix: 将电源管理选项自动隐藏修改为手动控制,避免 WOL 功能无法显示 #289
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user