mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
Simplify OS detection to use systemStatsStore only
- Remove navigator fallback since systemStatsStore is the standard - Default to Windows when OS info not available - Simplify tests to match new behavior - More consistent with app architecture
This commit is contained in:
@@ -128,6 +128,7 @@ import { type ReleaseNote } from '@/services/releaseService'
|
||||
import { useCommandStore } from '@/stores/commandStore'
|
||||
import { useReleaseStore } from '@/stores/releaseStore'
|
||||
import { useSettingStore } from '@/stores/settingStore'
|
||||
import { useSystemStatsStore } from '@/stores/systemStatsStore'
|
||||
import { electronAPI, isElectron } from '@/utils/envUtil'
|
||||
import { formatVersionAnchor } from '@/utils/formatUtil'
|
||||
|
||||
@@ -170,6 +171,7 @@ const { t, locale } = useI18n()
|
||||
const releaseStore = useReleaseStore()
|
||||
const commandStore = useCommandStore()
|
||||
const settingStore = useSettingStore()
|
||||
const systemStatsStore = useSystemStatsStore()
|
||||
|
||||
// Emits
|
||||
const emit = defineEmits<{
|
||||
@@ -199,7 +201,12 @@ const menuItems = computed<MenuItem[]>(() => {
|
||||
type: 'item',
|
||||
label: t('helpCenter.desktopUserGuide'),
|
||||
action: () => {
|
||||
openExternalLink(getDesktopGuideUrl(locale.value))
|
||||
openExternalLink(
|
||||
getDesktopGuideUrl(
|
||||
locale.value,
|
||||
systemStatsStore.systemStats?.system?.os
|
||||
)
|
||||
)
|
||||
emit('close')
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user