From da992fc5049b495b951a6a67411cfa1ee75016a5 Mon Sep 17 00:00:00 2001 From: algerkong Date: Wed, 29 Sep 2021 23:47:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E7=83=AD=E9=97=A8=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E9=80=BB=E8=BE=91=E4=B8=BA=E6=90=9C=E7=B4=A2=E5=85=B3?= =?UTF-8?q?=E9=94=AE=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/SearchBar.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/layout/components/SearchBar.vue b/src/layout/components/SearchBar.vue index 835e3f5..536dab8 100644 --- a/src/layout/components/SearchBar.vue +++ b/src/layout/components/SearchBar.vue @@ -49,9 +49,11 @@ const store = useStore(); // 推荐热搜词 const hotSearchKeyword = ref("搜索点什么吧...") +const hotSearchValue = ref("") const loadHotSearchKeyword = async () => { const { data } = await getSearchKeyword(); hotSearchKeyword.value = data.data.showKeyword + hotSearchValue.value = data.data.realkeyword } const loadPage = async () => { const { data } = await getUserDetail() @@ -77,7 +79,7 @@ const search = () => { let value = searchValue.value if (value == "") { - searchValue.value = hotSearchKeyword.value + searchValue.value = hotSearchValue.value } else { router.push({ path: "/search",