Merge branch 'main' of https://gitea.bowongai.com/bowong/expo-duooomi-app
This commit is contained in:
commit
b55c95ce14
|
|
@ -16,7 +16,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'
|
||||
|
||||
|
|
|
|||
|
|
@ -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 : '登出失败')
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in New Issue