feat: 完成banner展示模块

This commit is contained in:
陈淳
2023-03-20 19:46:47 +08:00
parent 5a4ac549f6
commit b3b3ca3fe4
16 changed files with 74 additions and 40 deletions

View File

@@ -120,12 +120,12 @@ onMounted(async()=>{
//加载discuss
const loadDiscussList=async()=>{
const response= await getList(query);
discussList.value=response.items;
total.value=Number( response.total);
discussList.value=response.data.items;
total.value=Number( response.data.total);
//全查,无需参数
const topResponse=await getTopList();
topDiscussList.value=topResponse.items;
topDiscussList.value=topResponse.data.items;
}
//进入添加主题页面