Commit 2c9dac73 authored by 皮倩雯's avatar 皮倩雯

解决数据字典导入数据后刷新失效问题

parent 9e996e6a
Pipeline #37847 passed with stages
in 24 minutes 43 seconds
......@@ -315,6 +315,7 @@ const WebDic = () => {
//是否首次加载
if (value === null || value === '-1') {
setData(res);
console.log(res)
if (first) {
setSelect(res[0]); // 默认当前选中一级条目第一条
setSelectColor(res[0]);
......@@ -613,7 +614,7 @@ const WebDic = () => {
if (info.file.status === 'done') {
console.log(1);
message.success(`${info.file.name} 导入成功`);
setFlag(flag + 1)
setFirst(true)
} else if (info.file.status === 'error') {
message.error(`${info.file.name} 导入失败.`);
}
......
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