Commit f9540d4a by zhaochengxiang

模型翻译没有数据 不覆盖原来的内容

parent e9486a97
...@@ -154,7 +154,9 @@ const ImportActionHeader = (props) => { ...@@ -154,7 +154,9 @@ const ImportActionHeader = (props) => {
} }
}, },
callback: data => { callback: data => {
if ((data?.translated||'') !== '') {
form.setFieldsValue({ name: data?.translated||'' }); form.setFieldsValue({ name: data?.translated||'' });
}
onChange && onChange(changedValues, allValues); onChange && onChange(changedValues, allValues);
} }
}) })
......
...@@ -450,7 +450,9 @@ const ImportActionTable = (props) => { ...@@ -450,7 +450,9 @@ const ImportActionTable = (props) => {
} }
}, },
callback: data => { callback: data => {
if ((data?.translated||'') !== '') {
form.setFieldsValue({ name: data?.translated||'' }); form.setFieldsValue({ name: data?.translated||'' });
}
getSuggest(); getSuggest();
} }
}) })
......
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