feat: 更新环境配置,修改 VITE_API_URL 和 @capp/eden 依赖版本,优化资产详情页面数据获取逻辑

This commit is contained in:
2026-01-25 18:39:27 +07:00
parent 464db7f638
commit bf2aee8172
4 changed files with 6 additions and 4 deletions

View File

@@ -23,8 +23,8 @@ const [investmentQuery] = useResetRef<any>({
});
const { data: allRecords, execute: executeAll } = safeClient(() => client.api.ledger.entries.get({ query: { ...allQuery.value } }));
const { data: incomeRecords, execute: executeIncome } = safeClient(() => client.api.ledger.entries.get({ query: { ...incomeQuery.value } }));
const { data: investmentRecords, execute: executeInvestment } = safeClient(() => client.api.ledger.entries.get({ query: { ...investmentQuery.value } }));
const { data: incomeRecords, execute: executeIncome } = safeClient(() => client.api.ledger.entries.get({ query: { ...incomeQuery.value } }), { immediate: false });
const { data: investmentRecords, execute: executeInvestment } = safeClient(() => client.api.ledger.entries.get({ query: { ...investmentQuery.value } }), { immediate: false });
// 当前选中的标签
const selectedTab = ref<"all" | "income" | "investment">("all");