mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-10 23:50:00 +00:00
Update aboutPanelStore.ts
simplify computed version access with shared system reference
This commit is contained in:
@@ -12,12 +12,11 @@ export const useAboutPanelStore = defineStore('aboutPanel', () => {
|
||||
const extensionStore = useExtensionStore()
|
||||
const systemStatsStore = useSystemStatsStore()
|
||||
|
||||
const coreVersion = computed(
|
||||
() => systemStatsStore?.systemStats?.system?.comfyui_version ?? ''
|
||||
)
|
||||
const system = computed(() => systemStatsStore?.systemStats?.system)
|
||||
|
||||
const coreVersion = computed(() => system.value?.comfyui_version ?? '')
|
||||
const workflowsTemplatesVersion = computed(
|
||||
() =>
|
||||
systemStatsStore?.systemStats?.system?.workflows_templates_version ?? ''
|
||||
() => system.value?.workflows_templates_version ?? ''
|
||||
)
|
||||
|
||||
const coreBadges = computed<AboutPageBadge[]>(() => [
|
||||
|
||||
Reference in New Issue
Block a user