From 2c76d1380f73c9099804453a708c7b7872efeee8 Mon Sep 17 00:00:00 2001 From: tone Date: Sat, 27 Dec 2025 13:07:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=9B=E5=BB=BA=E5=8D=9A=E5=AE=A2?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E4=B8=8D=E5=85=81=E8=AE=B8Slug=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/frontend/lib/api/endpoints/admin.client.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/frontend/lib/api/endpoints/admin.client.ts b/apps/frontend/lib/api/endpoints/admin.client.ts index d8a30a5..1c83584 100644 --- a/apps/frontend/lib/api/endpoints/admin.client.ts +++ b/apps/frontend/lib/api/endpoints/admin.client.ts @@ -106,6 +106,9 @@ export async function createBlog(data: CreateBlogParams) { if (data.description.length === 0) { throw new APIError('描述不得为空') } + if (data.slug.length === 0) { + throw new APIError('Slug不得为空') + } if (data.contentUrl.length === 0) { throw new APIError('文章链接不得为空') }