fix(stage-tamagotchi): incorrect property

This commit is contained in:
Neko Ayaka
2026-03-11 01:14:18 +08:00
parent 0f8ad59901
commit 5e075d6208
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ onMounted(async () => {
await settingsStore.initializeStageModel()
const serverChannelConfig = await getServerChannelConfig()
serverChannelSettingsStore.websocketTlsConfig = serverChannelConfig.websocketTlsConfig
serverChannelSettingsStore.websocketTlsConfig = serverChannelConfig.tlsConfig
await serverChannelStore.initialize({ possibleEvents: ['ui:configure'] }).catch(err => console.error('Failed to initialize Mods Server Channel in App.vue:', err))
await contextBridgeStore.initialize()
@@ -6,7 +6,7 @@ import { watch } from 'vue'
import { electronApplyServerChannelConfig, electronGetServerChannelConfig } from '../../../shared/eventa'
export const useServerChannelSettingsStore = defineStore('tamagotchi-server-channel-settings', () => {
const websocketTlsConfig = useLocalStorage<{ cert?: string, key?: string, passphrase?: string } | null>('settings/server-channel/websocket-tls-config', null)
const websocketTlsConfig = useLocalStorage<{ cert?: string, key?: string, passphrase?: string } | null | undefined>('settings/server-channel/websocket-tls-config', null)
const getServerChannelConfig = useElectronEventaInvoke(electronGetServerChannelConfig)
const applyServerChannelConfig = useElectronEventaInvoke(electronApplyServerChannelConfig)