From b7dad2d725836007e72b99b4e727610868aebec1 Mon Sep 17 00:00:00 2001 From: bridge Date: Fri, 6 Feb 2026 22:23:10 +0800 Subject: [PATCH] fix: screen init --- web/src/composables/useGameInit.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/composables/useGameInit.ts b/web/src/composables/useGameInit.ts index f6027d2..eef7818 100644 --- a/web/src/composables/useGameInit.ts +++ b/web/src/composables/useGameInit.ts @@ -40,12 +40,12 @@ export function useGameInit(options: UseGameInitOptions = {}) { // 初始化世界状态 await worldStore.initialize() - systemStore.setInitialized(true) - console.log('[GameInit] Game initialized.') - // 重新加载纹理以确保新生成的角色头像被加载 console.log('[GameInit] Reloading textures for new avatars...') await loadBaseTextures() + + systemStore.setInitialized(true) + console.log('[GameInit] Game initialized.') } async function pollInitStatus() {