对移动端的UI进行了重构

This commit is contained in:
2026-02-25 10:33:37 +08:00
parent ee3de1968c
commit 5709ef2966
16 changed files with 689 additions and 562 deletions
+2 -2
View File
@@ -113,10 +113,10 @@ export async function PUT(
return NextResponse.json({ error: 'Invalid title' }, { status: 400 });
}
const trimmed = body.title.trim();
if (!trimmed || trimmed.length > MAX_TITLE_LENGTH) {
if (trimmed.length > MAX_TITLE_LENGTH) {
return NextResponse.json({ error: 'Invalid title' }, { status: 400 });
}
updateData.title = trimmed;
updateData.title = trimmed || '无标题';
}
if (body.content !== undefined) {