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 { 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