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

feat: 修改sentry

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