Commit 054d625b by zhaochengxiang

bug fix

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