Commit 3f132db7 authored by 邓超's avatar 邓超

fix: 修改切换菜单没有code得功能清空参数

parent 4781465a
Pipeline #71724 passed 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