From 1c98921e0187a1283f80315f97cae0547e0f423d Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Sun, 28 Sep 2025 16:41:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=BA=E6=90=9C=E7=B4=A2=E9=A1=B5?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0error=E7=9B=91=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/pages/search.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/pages/search.vue b/app/pages/search.vue index 9f5f16f..959394e 100644 --- a/app/pages/search.vue +++ b/app/pages/search.vue @@ -109,7 +109,6 @@ data: sections, pending: loading, error, - refresh, } = await useAsyncData( () => `search-${route.query.query ?? ''}`, async () => { @@ -210,6 +209,12 @@ } ); + watch(error, (value) => { + if (value) { + console.error('数据获取失败: ', value); + } + }); + onMounted(() => { if (typeof route.query.query === 'string' && route.query.query.trim()) keyword.value = route.query.query;