fix: ts类型错误,lightbox错误将link识别为图片的问题

This commit is contained in:
2026-07-20 23:15:22 +08:00
parent a5f4d0a28d
commit 1ddaabe64b
3 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ const {list, total} = await http.get<ApiPageResponse<Post>>("post", {
});
const totalPage = Math.ceil(total / metadata.postPageSize)
const {data: categories} = await http.get<ApiPageResponse<CategoriesStats>>("category/stats");
const {data: categories} = await http.get<ApiResponse<CategoriesStats[]>>("category/stats");
---
<Layout>