feat: 更新钱包管理功能,添加银行账户和余额的初始化逻辑,优化API请求和响应处理
This commit is contained in:
10
src/App.vue
10
src/App.vue
@@ -1,12 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import { client, safeClient } from "./api";
|
||||
const { initializeWallet } = useWalletStore();
|
||||
|
||||
const walletStore = useWalletStore();
|
||||
|
||||
onMounted(async () => {
|
||||
const { data } = await safeClient(() => client.api.asset.balances.get(), { silent: true });
|
||||
walletStore.state.balances = data.value;
|
||||
client.api.rwa.issuance.products.get();
|
||||
onMounted(() => {
|
||||
initializeWallet();
|
||||
console.log("App mounted successfully");
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user