diff --git a/public/react/config/webpack.config.prod.js b/public/react/config/webpack.config.prod.js index 596843f5f..1fe7a6c93 100644 --- a/public/react/config/webpack.config.prod.js +++ b/public/react/config/webpack.config.prod.js @@ -326,8 +326,8 @@ module.exports = { comments: false }, compress: { - drop_debugger: false, - drop_console: false + drop_debugger: true, + drop_console: true } } }), diff --git a/public/react/src/common/components/comment/CommentForm.js b/public/react/src/common/components/comment/CommentForm.js index 3f1e16170..11eea72e2 100644 --- a/public/react/src/common/components/comment/CommentForm.js +++ b/public/react/src/common/components/comment/CommentForm.js @@ -1,7 +1,7 @@ /* * @Description: 评论表单 * @Author: tangjiang - * @Github: + * @Github: * @Date: 2019-12-17 17:32:55 * @LastEditors : tangjiang * @LastEditTime : 2020-01-06 18:42:09 @@ -18,7 +18,7 @@ function CommentForm (props) { const { onCancel, - onSubmit, + onSubmit, form, type } = props; @@ -47,7 +47,7 @@ function CommentForm (props) { setShowQuill(false); setCtx(''); props.form.resetFields(); - onCancel && onCancel(); + onCancel && onCancel(); } // 编辑器内容变化时 @@ -98,7 +98,7 @@ function CommentForm (props) { { required: true, message: '评论内容不能为空'} ], })( - handleInputClick(type)} placeholder="说点儿什么~" className={showQuill ? '' : 'show_input'} @@ -110,13 +110,13 @@ function CommentForm (props) { /> ) } - + { getFieldDecorator('input', { - rules: [ - { required: true, message: '输入值不能为空'} - ], initialValue: inputValue - })(