Commit cc39dc4a authored by 张子雨's avatar 张子雨

feat: 添加图片上传限制

parent acacbcc2
...@@ -160,6 +160,7 @@ class PicturesWall extends React.Component { ...@@ -160,6 +160,7 @@ class PicturesWall extends React.Component {
const { max, isDisabled } = this.props; const { max, isDisabled } = this.props;
const that = this; const that = this;
const uploadProps = { const uploadProps = {
accept: '.jpg,.png,.jpeg',
beforeUpload: lodash.debounce(async (file, files) => { beforeUpload: lodash.debounce(async (file, files) => {
const optionsArray = await CheckImageInfoList(files); const optionsArray = await CheckImageInfoList(files);
const onRightImgList = await isUploadNext(optionsArray, that.props.id); const onRightImgList = await isUploadNext(optionsArray, that.props.id);
......
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