feat: 更新银行卡管理功能,添加银行卡和删除银行卡的逻辑,优化API请求方式
This commit is contained in:
@@ -4,8 +4,9 @@ import { client, safeClient } from "./api";
|
||||
const walletStore = useWalletStore();
|
||||
|
||||
onMounted(async () => {
|
||||
const { data } = await safeClient(client.api.asset.balances.get());
|
||||
walletStore.state.balances = data;
|
||||
const { data } = await safeClient(() => client.api.asset.balances.get(), { silent: true });
|
||||
walletStore.state.balances = data.value;
|
||||
client.api.rwa.issuance.products.get();
|
||||
console.log("App mounted successfully");
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user