Commit f4796772 authored by 水玉婷's avatar 水玉婷
Browse files

feat:附件的时候,必须要有问题内容

parent 796092f1
......@@ -462,7 +462,7 @@ const validateMessageParams = (type: MessageType, params: MessageParams): boolea
case 'audio':
return !!audioUrl;
case 'attachment':
return attachments.value.length > 0;
return attachments.value.length > 0 && !!messageContent
default:
return false;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment