From a925a64cd7ab1935717fceb0fba5eb67f0bbf75c Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期二, 12 十一月 2024 13:35:14 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/components/Home/Dynamic.vue | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/components/Home/Dynamic.vue b/src/components/Home/Dynamic.vue index 6a98088..613496f 100644 --- a/src/components/Home/Dynamic.vue +++ b/src/components/Home/Dynamic.vue @@ -48,7 +48,11 @@ const t = this const res = await getResponseRecord(this.search) if(res.data.code == 100){ - t.lists = res.data.data + if(res.data.data && res.data.data.length>0){ + t.lists = res.data.data + }else{ + t.lists = [] + } }else{ this.$message.error(res.data.msg) } -- Gitblit v1.9.2