mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 07:30:11 +00:00
Fix systemStatsStore access in CI environment
Make systemStatsStore access truly lazy in HelpCenterMenuContent by creating store instance inside action function instead of at component initialization time
This commit is contained in:
@@ -171,7 +171,6 @@ const { t, locale } = useI18n()
|
||||
const releaseStore = useReleaseStore()
|
||||
const commandStore = useCommandStore()
|
||||
const settingStore = useSettingStore()
|
||||
const systemStatsStore = useSystemStatsStore()
|
||||
|
||||
// Emits
|
||||
const emit = defineEmits<{
|
||||
@@ -201,11 +200,10 @@ const menuItems = computed<MenuItem[]>(() => {
|
||||
type: 'item',
|
||||
label: t('helpCenter.desktopUserGuide'),
|
||||
action: () => {
|
||||
// Access systemStats lazily only when action is triggered
|
||||
const systemStats = useSystemStatsStore()
|
||||
openExternalLink(
|
||||
getDesktopGuideUrl(
|
||||
locale.value,
|
||||
systemStatsStore.systemStats?.system?.os
|
||||
)
|
||||
getDesktopGuideUrl(locale.value, systemStats.systemStats?.system?.os)
|
||||
)
|
||||
emit('close')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user