feat: 更新 '@capp/eden' 依赖至 0.0.9,添加资产中心页面,优化钱包相关逻辑
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user