added sse and description for withdraw
This commit is contained in:
@@ -9,6 +9,7 @@ import { applyProjectTheme } from '@/utils/config'
|
||||
import { useSettingsStore } from '@/store/settingsStore'
|
||||
import { useUserStore } from '@/store/userStore'
|
||||
import { getToken } from '@/utils'
|
||||
import { initPriceRealtimeChannel } from '@/utils/priceSocket'
|
||||
|
||||
type BootWindow = Window & {
|
||||
__BOOT_TIMEOUT__?: number
|
||||
@@ -98,6 +99,8 @@ export async function bootstrapApp() {
|
||||
|
||||
await withTimeout(settingsStore.fetchSettings(), 45000, 'Settings loading timeout')
|
||||
|
||||
initPriceRealtimeChannel((key) => settingsStore.getSettingByKey(key))
|
||||
|
||||
if (getToken()) {
|
||||
await withTimeout(userStore.getMyInfo(), 45000, 'User session loading timeout')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user