From 3b0dc7bed58102b94e6a7e512df366eeb08bc5e0 Mon Sep 17 00:00:00 2001 From: Klein <11241686+Klein422@user.noreply.gitee.com> Date: Sun, 15 Oct 2023 19:40:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=B0=8Fbug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/app/hot/heat_recommend/HeatRecommendationView.vue | 6 +++--- .../src/views/app/hot/live_follow/pages/LiveFollowPage.vue | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/console-ui/src/views/app/hot/heat_recommend/HeatRecommendationView.vue b/console-ui/src/views/app/hot/heat_recommend/HeatRecommendationView.vue index 45f89ce..947659e 100644 --- a/console-ui/src/views/app/hot/heat_recommend/HeatRecommendationView.vue +++ b/console-ui/src/views/app/hot/heat_recommend/HeatRecommendationView.vue @@ -235,15 +235,15 @@ const description = ref(""); const editDialog = ref(false); onMounted(async () => { - await initFollowDog(); + cards.value = await initFollowDog(); initColumns(); - cards.value = hotRecommendStore.followDogs; parseCards(hotRecommendStore.followDogs); }); // Init 模块类型 const initFollowDog = async()=>{ - await getFollowDogs().then(res=>{ + return await getFollowDogs().then(res=>{ hotRecommendStore.followDogs = res.data['list']; + return res.data['list']; }) } // Init 配置文件 diff --git a/console-ui/src/views/app/hot/live_follow/pages/LiveFollowPage.vue b/console-ui/src/views/app/hot/live_follow/pages/LiveFollowPage.vue index 77ec8ba..fc7dadf 100644 --- a/console-ui/src/views/app/hot/live_follow/pages/LiveFollowPage.vue +++ b/console-ui/src/views/app/hot/live_follow/pages/LiveFollowPage.vue @@ -25,6 +25,7 @@ follows.value = liveFollowStore.liveFollowList onMounted(async () => { await followList().then(res=>{ liveFollowStore.liveFollowList = res.data['list'] + follows.value = liveFollowStore.liveFollowList }) setTimeout(() => { loading.value = false;