Compare commits
No commits in common. "024105f3ed0235501ff4b7ae2909b25fc66f0a68" and "a66f7f9460e80c9b4a63f37dbe127e57ffa5c905" have entirely different histories.
024105f3ed
...
a66f7f9460
|
|
@ -16,7 +16,7 @@ import { bleManager } from '@/ble/managers/bleManager'
|
||||||
import { HotUpdate } from '@/components/hot-update'
|
import { HotUpdate } from '@/components/hot-update'
|
||||||
import { useColorScheme } from '@/hooks/use-color-scheme'
|
import { useColorScheme } from '@/hooks/use-color-scheme'
|
||||||
import { setupGlobalFetchLogger } from '@/lib/fetch-logger'
|
import { setupGlobalFetchLogger } from '@/lib/fetch-logger'
|
||||||
import { useUserSession } from '@/stores/UserStore'
|
import { useUserSession } from '@/stores/userStore'
|
||||||
|
|
||||||
const isProd = process.env.EXPO_PUBLIC_ENV !== 'development'
|
const isProd = process.env.EXPO_PUBLIC_ENV !== 'development'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ class UserStore {
|
||||||
await authSignOut()
|
await authSignOut()
|
||||||
this.reset()
|
this.reset()
|
||||||
// 登出时重置余额store
|
// 登出时重置余额store
|
||||||
const { userBalanceStore } = await import('./UserBalanceStore')
|
const { userBalanceStore } = await import('./userBalanceStore')
|
||||||
userBalanceStore.reset()
|
userBalanceStore.reset()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.setError(error instanceof Error ? error.message : '登出失败')
|
this.setError(error instanceof Error ? error.message : '登出失败')
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
export { bleStore } from './BleStore'
|
export { bleStore } from './bleStore'
|
||||||
export { userBalanceStore } from './UserBalanceStore'
|
export { userBalanceStore } from './userBalanceStore'
|
||||||
export { userStore } from './UserStore'
|
export { userStore } from './userStore'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue