Commit a850461f authored by XieZhiXiong's avatar XieZhiXiong

修复图片限制大小、初始笑脸的问题

parent 3a238dbf
......@@ -122,7 +122,7 @@ const EvaluateOrder: React.FC = () => {
};
const beforeUpload = file => {
if (file.size / 1024 < 10) {
if (file.size / 1024 > 10) {
message.warning('图片大小超过10M');
return Promise.reject();
}
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-09-23 17:00:24
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-10-20 17:58:51
* @LastEditTime: 2020-11-05 18:27:29
* @Description:
*/
import { ISchema } from '@formily/antd';
......@@ -85,7 +85,7 @@ export const evaluateSchema: ISchema = {
},
smile: {
type: 'object',
default: 1,
default: 5,
'x-component': 'SmilingFace',
'x-component-props': {
position: 'right',
......
......@@ -122,7 +122,7 @@ const EvaluateOrder: React.FC = () => {
};
const beforeUpload = file => {
if (file.size / 1024 < 10) {
if (file.size / 1024 > 10) {
message.warning('图片大小超过10M');
return Promise.reject();
}
......
......@@ -85,7 +85,7 @@ export const evaluateSchema: ISchema = {
},
smile: {
type: 'object',
default: 1,
default: 5,
'x-component': 'SmilingFace',
'x-component-props': {
position: 'right',
......
Markdown is supported
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