diff --git a/src/api/search.ts b/src/api/search.ts index 8a5e953..242eb09 100644 --- a/src/api/search.ts +++ b/src/api/search.ts @@ -3,7 +3,7 @@ import { ISearchDetail } from "@/type/search"; // 搜索内容 export const getSearch = (keywords: any) => { - return request.get("/cloudsearch", { + return request.get("/search", { params: { keywords: keywords, type: 1018 }, }); }; diff --git a/src/layout/components/SearchBar.vue b/src/layout/components/SearchBar.vue index e94066f..caeea35 100644 --- a/src/layout/components/SearchBar.vue +++ b/src/layout/components/SearchBar.vue @@ -5,32 +5,14 @@ size="large" round v-model:value="searchValue" - :placeholder="searchKeyword" + :placeholder="hotSearchKeyword" class="border border-gray-600" - @focus="searchFocus" - @blur="isSearch = false" @keydown.enter="search" > - -
@@ -48,43 +30,34 @@