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

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

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