From 1924a53048ae36278f4d218c4ac82a362f0714ef Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Fri, 12 Jul 2024 14:49:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=83=AD=E9=97=A8=E8=AF=8D=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/search/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/search/index.vue b/src/views/search/index.vue index 8ab6321..dab11f5 100644 --- a/src/views/search/index.vue +++ b/src/views/search/index.vue @@ -10,7 +10,7 @@
热门搜索
{{ item.name }} + :key="index" @click="handelClickTopSearch(item)">{{ item}}
@@ -38,7 +38,7 @@ export default { ], pageSize: 10, pageNo: 1, - topWordList: {} + topWordList: [] }; }, created() { @@ -87,8 +87,8 @@ export default { }, async popularSearch() { const res = await popularSearch() - if (res.code == 0) { - this.topWordList = res.data + if (res) { + this.topWordList = res } else { this.$toast(res.msg) }