feat: 更新 '@capp/eden' 依赖至 0.0.9,添加资产中心页面,优化钱包相关逻辑

This commit is contained in:
2026-01-18 20:48:02 +07:00
parent 7a17102141
commit afc806381e
14 changed files with 174 additions and 99 deletions

View File

@@ -2,7 +2,7 @@
import { arrowDownCircleOutline, arrowUpCircleOutline, listOutline, walletOutline } from "ionicons/icons";
const walletStore = useWalletStore();
const { balanceWallet } = storeToRefs(walletStore);
const balanceWallet = await walletStore.getWalletByType("balance");
// 当前选中的标签
const selectedTab = ref<"all" | "income" | "investment">("all");
@@ -137,8 +137,6 @@ function getTypeName(type: string) {
function formatAmount(amount: number) {
return amount >= 0 ? `+${amount.toFixed(2)}` : amount.toFixed(2);
}
walletStore.syncBalanceWallet();
</script>
<template>