前端小bug修复

This commit is contained in:
Klein
2023-10-15 19:40:00 +08:00
parent 455d316cc6
commit 3b0dc7bed5
2 changed files with 4 additions and 3 deletions

View File

@@ -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 配置文件

View File

@@ -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;