Commit 054d625b by zhaochengxiang

bug fix

parent 9fd6e9e1
......@@ -331,7 +331,9 @@ const EditModel = (props) => {
conflictItemId
}
},
callback: () => {}
callback: () => {
LocalStorage.set('conflictChange', !(LocalStorage.get('conflictChange')||false));
}
})
}
......
......@@ -82,7 +82,7 @@ const FC = (props) => {
setBranchModelSyncParams({
visible: true,
item: {
id: record.conflictEasyDataModelerDataModelId,
id: record.conflictMergeEasyDataModelerDataModelId,
conflictItemId: record.conflictItemId,
}
})
......@@ -155,6 +155,12 @@ const FC = (props) => {
React.useEffect(() => {
getDetail()
window?.addEventListener("storage", storageChange)
return () => {
window?.removeEventListener("storage", storageChange)
}
}, [])
const cols = React.useMemo(() => {
......@@ -165,6 +171,12 @@ const FC = (props) => {
return []
}, [data])
const storageChange = (e) => {
if (e.key === 'conflictChange') {
getDetail()
}
}
const getDetail = () => {
setLoading(true)
dispatch({
......
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