From b9bd8c6cdab37d6047c9002f8aaafdb82cffd516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=91=E8=BD=BB=E7=8B=82?= <1677568218@qq.com> Date: Sat, 18 Feb 2023 23:36:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../documentation/1.0.0/full_documentation.json | 2 +- frontend/components/Navs/SearchBox.vue | 11 +++++------ frontend/components/Types/index.vue | 2 +- frontend/server/api/global/search.ts | 3 +++ 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json b/backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json index 6858d02..ec60958 100644 --- a/backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -14,7 +14,7 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "x-generation-date": "2023-02-18T06:39:30.396Z" + "x-generation-date": "2023-02-18T15:17:00.843Z" }, "x-strapi-config": { "path": "/documentation", diff --git a/frontend/components/Navs/SearchBox.vue b/frontend/components/Navs/SearchBox.vue index 076960d..0709c96 100644 --- a/frontend/components/Navs/SearchBox.vue +++ b/frontend/components/Navs/SearchBox.vue @@ -18,7 +18,7 @@ const handleClickLink = () => { const searchInput = useDebounceFn(async () => { if (keyword.value !== '') { const { data: SearchData_ } = await useFetch( - `/api/global/search?keyword=${keyword}`, + `/api/global/search?keyword=${keyword.value}`, ) searchData.value = SearchData_.value } @@ -48,16 +48,15 @@ onUnmounted(() => { type="search" maxlength="32" placeholder="搜索" - @input="searchInput" > -