Commit 09435272 authored by 皮倩雯's avatar 皮倩雯

fix: '修改数据字典删除数据后的交互逻辑'

parent bb8c9680
Pipeline #42627 skipped with stages
......@@ -127,9 +127,9 @@ const WebDic = () => {
<DeleteOutlined
onClick={() => {
setSelect(record);
if (record.parentID === '-1') {
setSelectColor(record);
}
// if (record.parentID === '-1') {
// setSelectColor(record);
// }
}}
style={{
fontSize: '16px',
......@@ -584,8 +584,14 @@ const WebDic = () => {
submitSearchUser();
}
if (select.parentID === '-1') {
setSubData([]);
// setSubData([]);
console.log(select);
console.log(selectID);
if (select.nodeID === selectID) {
setSelectID('');
}
}
notification.success({
message: '删除成功',
});
......
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