feat: 更新环境配置,修改 VITE_API_URL 和 @capp/eden 依赖版本,优化资产详情页面数据获取逻辑
This commit is contained in:
@@ -1 +1 @@
|
||||
VITE_API_URL=https://capp-api.riwsan.com
|
||||
VITE_API_URL=http://192.168.1.2:9538
|
||||
2
auto-imports.d.ts
vendored
2
auto-imports.d.ts
vendored
@@ -451,6 +451,8 @@ declare module 'vue' {
|
||||
readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>
|
||||
readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>
|
||||
readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>
|
||||
readonly showSuccessToast: UnwrapRef<typeof import('vant/es')['showSuccessToast']>
|
||||
readonly showToast: UnwrapRef<typeof import('vant/es')['showToast']>
|
||||
readonly storeToRefs: UnwrapRef<typeof import('pinia')['storeToRefs']>
|
||||
readonly syncRef: UnwrapRef<typeof import('@vueuse/core')['syncRef']>
|
||||
readonly syncRefs: UnwrapRef<typeof import('@vueuse/core')['syncRefs']>
|
||||
|
||||
@@ -19,7 +19,7 @@ catalog:
|
||||
'@capacitor/share': ^8.0.0
|
||||
'@capacitor/status-bar': 8.0.0
|
||||
'@capacitor/toast': ^8.0.0
|
||||
'@capp/eden': http://192.168.1.2:9538/api/capp-eden-0.0.38.tgz
|
||||
'@capp/eden': http://192.168.1.2:9538/api/capp-eden-0.0.40.tgz
|
||||
'@cloudflare/workers-types': ^4.20260113.0
|
||||
'@elysiajs/eden': ^1.4.6
|
||||
'@faker-js/faker': ^10.2.0
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user