docs: fix update demo

This commit is contained in:
afc163 2022-01-04 21:44:08 +08:00
parent a29154e67a
commit 7caa03e2ef

View File

@ -21,7 +21,7 @@ import { UploadOutlined } from '@ant-design/icons';
const Uploader = () => {
const props = {
beforeUpload: file => {
const isPNG = file.type === 'image/png'
const isPNG = file.type === 'image/png';
if (!isPNG) {
message.error(`${file.name} is not a png file`);
}