diff --git a/.env.development b/.env.development index 65273e7..3cc5181 100644 --- a/.env.development +++ b/.env.development @@ -1 +1 @@ -VITE_API_URL=https://capp-api.riwsan.com \ No newline at end of file +VITE_API_URL=http://192.168.1.2:9538 \ No newline at end of file diff --git a/auto-imports.d.ts b/auto-imports.d.ts index b0deb4b..778a2fb 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -451,6 +451,8 @@ declare module 'vue' { readonly shallowReactive: UnwrapRef readonly shallowReadonly: UnwrapRef readonly shallowRef: UnwrapRef + readonly showSuccessToast: UnwrapRef + readonly showToast: UnwrapRef readonly storeToRefs: UnwrapRef readonly syncRef: UnwrapRef readonly syncRefs: UnwrapRef diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index a353e39..846d988 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -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 diff --git a/src/views/asset_details/index.vue b/src/views/asset_details/index.vue index 8ad49bc..82cd490 100644 --- a/src/views/asset_details/index.vue +++ b/src/views/asset_details/index.vue @@ -23,8 +23,8 @@ const [investmentQuery] = useResetRef({ }); 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");