Commit 4ad59101 authored by 张子雨's avatar 张子雨

feat: 修改sentry

parent 255c62e6
...@@ -122,6 +122,7 @@ class PicturesWall extends React.Component { ...@@ -122,6 +122,7 @@ class PicturesWall extends React.Component {
listType="text" listType="text"
fileList={fileList} fileList={fileList}
onRemove={status === 1 ? this.clearFileList : ''} onRemove={status === 1 ? this.clearFileList : ''}
accept=".pdf,.doc,.docx,.zip,.rar,.png,.jpeg"
> >
{max && fileList.length >= max ? null : uploadButton} {max && fileList.length >= max ? null : uploadButton}
</Upload> </Upload>
......
...@@ -147,7 +147,7 @@ const FormAttr = forwardRef((props, ref) => { ...@@ -147,7 +147,7 @@ const FormAttr = forwardRef((props, ref) => {
if (typeof values[item] === 'string') { if (typeof values[item] === 'string') {
obj.productAttributeApplyValueList = JSON.parse(values[item]); obj.productAttributeApplyValueList = JSON.parse(values[item]);
} else { } else {
obj.productAttributeApplyValueList = values[item].map(v => JSON.parse(v)); obj.productAttributeApplyValueList = values[item]?.map(v => JSON.parse(v)) || [];
} }
return obj; return obj;
}); });
......
...@@ -287,7 +287,7 @@ const UpdateStatusModal = (props, ref) => { ...@@ -287,7 +287,7 @@ const UpdateStatusModal = (props, ref) => {
setConfirmLoading(true); setConfirmLoading(true);
const res = await submitApi(params); const res = await submitApi(params);
setConfirmLoading(false); setConfirmLoading(false);
if (res.code === '0000' && res.businessCode === '0000') { if (res?.code === '0000' && res?.businessCode === '0000') {
notification.success({ notification.success({
message: '提交成功', message: '提交成功',
}); });
......
...@@ -12,7 +12,6 @@ class Socket extends EventEmitter { ...@@ -12,7 +12,6 @@ class Socket extends EventEmitter {
this.taskRemindInterval = null; this.taskRemindInterval = null;
this.connected = false; this.connected = false;
this.waitingSendData = []; this.waitingSendData = [];
this.reconnectCount = 0;
this.heartBeatTimer = null; this.heartBeatTimer = null;
return this; return this;
} }
......
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