fix: report upload missing imageUrls field

This commit is contained in:
MingNian
2026-05-20 16:43:28 +08:00
parent 435af55c4a
commit 15deddfcb9

View File

@@ -51,6 +51,7 @@ export async function uploadReport(data: { title: string; category: string }): P
const res = await api.post<RawReport>('/api/reports', { const res = await api.post<RawReport>('/api/reports', {
title: data.title, title: data.title,
category: data.category, category: data.category,
imageUrls: [],
}); });
return mapReport(res.data); return mapReport(res.data);
} }