Browse Source

回复状态内容必选

visuddhinanda 2 years ago
parent
commit
52c8467fe1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      dashboard/src/components/discussion/DiscussionCreate.tsx

+ 1 - 0
dashboard/src/components/discussion/DiscussionCreate.tsx

@@ -153,6 +153,7 @@ const DiscussionCreateWidget = ({
               ) : contentType === "markdown" ? (
                 <Form.Item
                   name="content"
+                  rules={[{ required: typeof parent !== "undefined" }]}
                   label={
                     typeof parent === "undefined"
                       ? intl.formatMessage({