feat: 完善内容管理通用富文本编辑器
This commit is contained in:
@@ -15,7 +15,7 @@ const productSchema = z.object({
|
||||
subtitle: z.string().max(80),
|
||||
type: z.enum(['course', 'service', 'tool']).default('course'),
|
||||
summary: z.string().max(300).default(''),
|
||||
content: z.string().max(6000).default(''),
|
||||
content: z.string().max(30000).default(''),
|
||||
image: localOrHttpUrl,
|
||||
href: localOrHttpUrl,
|
||||
status: z.enum(['draft', 'published', 'offline']).default('draft'),
|
||||
@@ -26,7 +26,7 @@ const articleSchema = z.object({
|
||||
type: z.enum(['news', 'statement', 'media']),
|
||||
title: z.string().min(1).max(120),
|
||||
summary: z.string().max(300),
|
||||
content: z.string().max(12000),
|
||||
content: z.string().max(50000),
|
||||
cover: localOrHttpUrl,
|
||||
publishedAt: z.string().max(40),
|
||||
status: z.enum(['draft', 'published', 'offline']),
|
||||
|
||||
Reference in New Issue
Block a user