feat: 更新钱包存储,添加USDT余额同步功能并移除初始化钱包调用
This commit is contained in:
@@ -13,9 +13,9 @@ const emit = defineEmits<{
|
||||
const { t } = useI18n();
|
||||
|
||||
const walletStore = useWalletStore();
|
||||
await walletStore.syncFundingBalances();
|
||||
const { fundingBalances } = storeToRefs(walletStore);
|
||||
const currentUSDTBalance = computed(() => fundingBalances.value[0]?.available || 0);
|
||||
await walletStore.syncUSDTBalance();
|
||||
const { USDTBalance } = storeToRefs(walletStore);
|
||||
const currentUSDTBalance = computed(() => USDTBalance.value?.available || 0);
|
||||
|
||||
const num = ref<number | null>(null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user