Commit 8ece3891 authored by 涂伟's avatar 涂伟
parents 3b3873ca 3f132db7
Pipeline #71727 waiting for manual action with stages
......@@ -70,6 +70,9 @@ const EditForm = props => {
useEffect(() => {
console.log(info, 'info');
console.log(infoAll, 'infoalll');
if (!infoAll.code) {
setMenuParmar([]);
}
setCodeParmar(infoAll.codeParam ? JSON.parse(infoAll.codeParam) : []);
setCurrentMenu({});
form.resetFields();
......@@ -414,6 +417,7 @@ const EditForm = props => {
code={infoAll?.code}
codeParam={infoAll?.codeParam}
initCurrentMenu={value => {
console.log(value, 'value');
setCurrentMenu(value);
setMenuParmar(value.param);
}}
......
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