From 21aa3bf52748508cf0ba5aae6e002e87c58b78d4 Mon Sep 17 00:00:00 2001 From: gww Date: Thu, 15 Jan 2026 10:26:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=A7=E5=B0=8F=E5=86=99=E5=AD=97?= =?UTF-8?q?=E6=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/_layout.tsx | 2 +- stores/UserStore.ts | 2 +- stores/index.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/_layout.tsx b/app/_layout.tsx index fd4bdc0..8497c07 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -15,7 +15,7 @@ import { bleManager } from '@/ble/managers/bleManager' import { HotUpdate } from '@/components/hot-update' import { useColorScheme } from '@/hooks/use-color-scheme' import { setupGlobalFetchLogger } from '@/lib/fetch-logger' -import { useUserSession } from '@/stores/userStore' +import { useUserSession } from '@/stores/UserStore' const isProd = process.env.EXPO_PUBLIC_ENV !== 'development' diff --git a/stores/UserStore.ts b/stores/UserStore.ts index cb17c71..11eb2fe 100644 --- a/stores/UserStore.ts +++ b/stores/UserStore.ts @@ -82,7 +82,7 @@ class UserStore { await authSignOut() this.reset() // 登出时重置余额store - const { userBalanceStore } = await import('./userBalanceStore') + const { userBalanceStore } = await import('./UserBalanceStore') userBalanceStore.reset() } catch (error) { this.setError(error instanceof Error ? error.message : '登出失败') diff --git a/stores/index.ts b/stores/index.ts index 1226ed5..ce98e2a 100644 --- a/stores/index.ts +++ b/stores/index.ts @@ -1,3 +1,3 @@ -export { bleStore } from './bleStore' -export { userBalanceStore } from './userBalanceStore' -export { userStore } from './userStore' +export { bleStore } from './BleStore' +export { userBalanceStore } from './UserBalanceStore' +export { userStore } from './UserStore'