Commit ba9752bf by zhaochengxiang

清除terms

parent 6a7eed78
......@@ -136,6 +136,7 @@ const EditModel = (props) => {
},
callback: () => {
setConfirmLoading(false);
setTerms([]);
showMessage("success", '新增模型成功');
setActionData({ ...actionData, ...{ action: 'detail', modelerId: data.id||'', editable: data?.editable||false, stateId: data?.state?.id||'' } });
......@@ -148,6 +149,7 @@ const EditModel = (props) => {
})
} else {
setConfirmLoading(false);
setTerms([]);
showMessage("success", '保存模型成功');
......
......@@ -275,13 +275,14 @@ const ModelTable = (props) => {
useEffect(() => {
if ((modelId||'') !== '') {
window?.addEventListener("storage", (e) => {
if (e.key === 'modelChange') {
getDataModel();
}
});
}
// if ((modelId||'') !== '') {
// window?.addEventListener("storage", (e) => {
// if (e.key === 'modelChange') {
// getDataModel();
// }
// });
// }
//eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
......@@ -591,7 +592,6 @@ const ModelTable = (props) => {
return expanded ? <UpOutlined style={{ fontSize: 10 }} onClick={e => onExpand(record, e)} /> : <DownOutlined style={{ fontSize: 10 }} onClick={e => onExpand(record, e)} />
},
rowExpandable: record => {
return record?.alreadyCheckedOut;
}
};
......
......@@ -49,6 +49,10 @@ const StartFlowModal = (props) => {
}
LocalStorage.set('modelChange', !(LocalStorage.get('modelChange')||false));
let event = new Event('storage');
event.key = 'modelChange';
window?.dispatchEvent(event);
onCancel && onCancel(true);
},
error: () => {
......
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