update
Some checks failed
deploy / deploy (push) Has been cancelled

This commit is contained in:
toom1996
2026-08-15 01:07:33 +08:00
parent 8d65eb8850
commit 58f9f95f8e
8 changed files with 1383 additions and 600 deletions

View File

@ -186,6 +186,7 @@ export function loadArticlesWithImages(size = 40): Promise<ArticleCard[]> {
if (!API_BASE) return []
try {
const res = await fetch(`${API_BASE}/api/public/articles?page=1&size=${size}&with_images=5`)
console.log(res)
if (!res.ok) return []
const json: any = await res.json()
const items: RawArticle[] = json?.data ?? []