提交 fd51d3d7 作者: 龚洪江

修复:项目信息布局

上级 88011819
...@@ -39,7 +39,7 @@ export default function PublishMessage(props: Props) { ...@@ -39,7 +39,7 @@ export default function PublishMessage(props: Props) {
//图片上传 //图片上传
const handleChange: UploadProps['onChange'] = (info) => { const handleChange: UploadProps['onChange'] = (info) => {
const isSize = (info.file as any).size / 1024 / 1024 < 5; const isSize = (info.file as any).size / 1024 / 1024 < 5;
if (isSize) { if (!isSize) {
window.messageApi.error('上传文件最大5M'); window.messageApi.error('上传文件最大5M');
return; return;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论