feat: 添加路由守卫,优化路由管理并清理钱包卡片组件逻辑
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import { client, safeClient } from "./api";
|
||||
|
||||
const walletStore = useWalletStore();
|
||||
|
||||
onMounted(async () => {
|
||||
const { data } = await safeClient(client.api.asset.balances.get());
|
||||
walletStore.state.balances = data;
|
||||
console.log("App mounted successfully");
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user