feat: 添加 IonSegment 和 IonSegmentButton 组件支持,更新 api-types 依赖版本,优化钱包状态获取逻辑

This commit is contained in:
2025-12-24 01:20:24 +07:00
parent 80bdb0f997
commit 57e346df3f
6 changed files with 39 additions and 15 deletions

View File

@@ -26,7 +26,7 @@ export const useWalletStore = defineStore("wallet", () => {
state.balances = data;
return;
}
const { data: balances } = await safeClient(() => client.api.asset.balances.get(), { silent: true });
const { data: balances } = await safeClient(() => client.api.wallet.balances.get(), { silent: true });
state.balances = balances.value || [];
}