mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-09-13 11:04:25 +08:00
feat: 完善按配置隐藏控制台菜单选项
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import { useLocalStorage } from '@vueuse/core'
|
||||
import type { RemovableRef } from '@vueuse/core'
|
||||
|
||||
export type FeatureVisibilityKey = 'webTerminal' | 'computerUse'
|
||||
export type FeatureVisibilityKey = 'webTerminal' | 'computerUse' | 'pasteText'
|
||||
export type FeatureVisibility = Record<FeatureVisibilityKey, boolean>
|
||||
|
||||
const DEFAULT_FEATURE_VISIBILITY: FeatureVisibility = {
|
||||
webTerminal: true,
|
||||
computerUse: true,
|
||||
pasteText: true,
|
||||
}
|
||||
|
||||
const featureVisibility = useLocalStorage<FeatureVisibility>(
|
||||
|
||||
Reference in New Issue
Block a user