style: 发送文件类消息不loading了

dev/supplier-email-drawer
Lei OT 9 months ago
parent 07b2dabbed
commit 1cd09cdfdd

@ -219,7 +219,7 @@ const InputComposer = ({ channel, currentActive }) => {
type: fileTypeSupport,
name: file.name,
uploadStatus: 'loading',
data: { dataUri: '', link: '', width: '100%', height: 150, loading: uploadProgressSimulate() },
data: { dataUri: '', link: '', width: '100%', height: 150, loading: 0 },
id: uuid(),
};
//

@ -68,7 +68,7 @@ const ImageUpload = ({ disabled, invokeUploadFileMessage, invokeSendUploadMessag
onChange={({file}) => {
if (file.status === 'done') {
const { file_url } = file.response.result;
invokeSendUploadMessage({...fileObj, data: { ...fileObj.data, link: file_url, dataUri: file_url, uri: file_url, loading: 1 }});
invokeSendUploadMessage({...fileObj, data: { ...fileObj.data, link: file_url, dataUri: file_url, uri: file_url, loading: 0 }});
}
if (file.status === 'error') {
message.error(`添加失败`);

Loading…
Cancel
Save