Commit 861b63a0 by zhaochengxiang

已发布模型下的草稿选择送审状态没有实时改变

parent 91c96e87
......@@ -299,7 +299,7 @@ const ModelTable = (props) => {
setPagination({...pagination, pageNum: 1 });
}
} else {
getDataModel();
getCheckoutDataModel();
}
//eslint-disable-next-line react-hooks/exhaustive-deps
}, [ catalogId, keyword, offset, modelState ]);
......@@ -422,20 +422,20 @@ const ModelTable = (props) => {
})
}
const getDataModel = () => {
dispatch({
type: 'datamodel.getDataModel',
payload: {
id: modelId
},
callback: data => {
setSubData(data?[data]:[]);
},
error: () => {
}
})
}
// const getDataModel = () => {
// dispatch({
// type: 'datamodel.getDataModel',
// payload: {
// id: modelId
// },
// callback: data => {
// setSubData(data?[data]:[]);
// },
// error: () => {
// }
// })
// }
const editItem = (record) => {
onItemAction && onItemAction(record, 'edit');
......
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