mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 22:39:39 +00:00
Add About to Help menu (#2010)
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -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[] => {
|
||||
|
||||
Reference in New Issue
Block a user