feat: implement category update functionality with validation and new fields in form

This commit is contained in:
Ardeman
2025-03-08 01:58:59 +08:00
parent c975169f05
commit 40a3553f9d
5 changed files with 128 additions and 9 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ export const FormContentsPage = (properties: TProperties) => {
fetcher,
resolver: zodResolver(contentSchema),
values: {
id: newsData?.id || '',
id: newsData?.id || undefined,
categories: newsData?.categories || [],
tags: newsData?.tags || [],
title: newsData?.title || '',