Add About to Help menu (#2010)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
filtered
2024-12-23 08:17:25 +11:00
committed by GitHub
parent c3ceef0461
commit 3767749398
14 changed files with 58 additions and 4 deletions

View File

@@ -82,6 +82,10 @@ import { isElectron } from '@/utils/envUtil'
import { normalizeI18nKey } from '@/utils/formatUtil'
import { useI18n } from 'vue-i18n'
const props = defineProps<{
defaultPanel?: 'about' | 'keybinding' | 'extension' | 'server-config'
}>()
const KeybindingPanel = defineAsyncComponent(
() => import('./setting/KeybindingPanel.vue')
)
@@ -156,7 +160,10 @@ watch(activeCategory, (newCategory, oldCategory) => {
})
onMounted(() => {
activeCategory.value = categories.value[0]
activeCategory.value = props.defaultPanel
? categories.value.find((x) => x.key === props.defaultPanel) ??
categories.value[0]
: categories.value[0]
})
const sortedGroups = (category: SettingTreeNode): ISettingGroup[] => {