feat: update

This commit is contained in:
Rogee
2025-05-06 16:11:23 +08:00
parent 3d75aaea6c
commit ad866f0ec1
2 changed files with 8 additions and 8 deletions

View File

@@ -195,10 +195,10 @@ const savePost = async () => {
valid = false;
}
if (!post.introduction.trim()) {
errors.introduction = '请填写文章介绍';
valid = false;
}
// if (!post.introduction.trim()) {
// errors.introduction = '请填写文章介绍';
// valid = false;
// }
if (post.selectedMedia.length === 0) {
errors.selectedMedia = '请选择至少一个媒体文件';

View File

@@ -235,10 +235,10 @@ const savePost = async () => {
valid = false;
}
if (!post.introduction.trim()) {
errors.introduction = '请填写文章介绍';
valid = false;
}
// if (!post.introduction.trim()) {
// errors.introduction = '请填写文章介绍';
// valid = false;
// }
if (post.selectedMedia.length === 0) {
errors.selectedMedia = '请选择至少一个媒体文件';