From bf2aee81725e8e636a47b160bc220a68e824ee73 Mon Sep 17 00:00:00 2001 From: Seven Date: Sun, 25 Jan 2026 18:39:27 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E4=BF=AE=E6=94=B9=20VITE=5FAPI=5FUR?= =?UTF-8?q?L=20=E5=92=8C=20@capp/eden=20=E4=BE=9D=E8=B5=96=E7=89=88?= =?UTF-8?q?=E6=9C=AC=EF=BC=8C=E4=BC=98=E5=8C=96=E8=B5=84=E4=BA=A7=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E9=9D=A2=E6=95=B0=E6=8D=AE=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- auto-imports.d.ts | 2 ++ pnpm-workspace.yaml | 2 +- src/views/asset_details/index.vue | 4 ++-- 4 files changed, 6 insertions(+), 4 deletions(-) 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");