前端:完善 naive-ui 配置,修复 API 返回值访问方式,修复 Sidebar 硬编码数据,修复路由守卫逻辑,修复其他组件问题。
This commit is contained in:
@@ -22,7 +22,7 @@ async function fetchPosts(categoryId?: string) {
|
||||
params.category_id = categoryId
|
||||
}
|
||||
const response = await postApi.getList(params)
|
||||
posts.value = response.data.items.filter(p => p.status === 'published')
|
||||
posts.value = response.data.items.filter((p: any) => p.status === 'published')
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch posts:', error)
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user