feat: 移除初始化时同步 USDT 余额的逻辑,简化组件加载过程

This commit is contained in:
2026-01-13 18:57:54 +07:00
parent ee755dc36e
commit 4a535dc871

View File

@@ -14,8 +14,6 @@ import SelectCurrency from "../withdraw/components/select-currency.vue";
const { t } = useI18n(); const { t } = useI18n();
const router = useRouter(); const router = useRouter();
const walletStore = useWalletStore(); const walletStore = useWalletStore();
const { USDTBalance } = storeToRefs(walletStore);
await walletStore.syncUSDTBalance();
const formRef = useTemplateRef<FormInstance>("formRef"); const formRef = useTemplateRef<FormInstance>("formRef");
type AccountType = "funding" | "trading"; type AccountType = "funding" | "trading";
@@ -106,11 +104,6 @@ async function syncAvailableBalance() {
} }
} }
// 初始化时获取余额
onMounted(() => {
syncAvailableBalance();
});
// 提交划转 // 提交划转
async function onSubmit(values: GenericObject) { async function onSubmit(values: GenericObject) {
const loading = await loadingController.create({ const loading = await loadingController.create({