Commit b666f22f authored by GuanHua's avatar GuanHua

fix: 创建店铺上传宣传画册文件格式限制问题修复

parent f19b7121
......@@ -445,7 +445,7 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => {
action="/api/file/file/upload"
data={{ fileType: UPLOAD_TYPE }}
showUploadList={false}
accept='.pdf'
// accept='.pdf'
beforeUpload={beforeDocUpload}
onChange={handleChange}
>
......
......@@ -51,6 +51,7 @@ const ShopInfo: React.FC<ShopInfoPropsType> = (props) => {
if (!isLt50M) {
message.error('上传文件大小不超过 50M!');
}
if (!isPDF) {
message.error('请上传pdf格式文件');
}
......@@ -433,7 +434,7 @@ const ShopInfo: React.FC<ShopInfoPropsType> = (props) => {
action="/api/file/file/upload"
data={{ fileType: UPLOAD_TYPE }}
showUploadList={false}
accept='.pdf'
// accept='.pdf'
beforeUpload={beforeDocUpload}
onChange={handleChange}
>
......
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