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;