Commit a83ac814 authored by XieZhiXiong's avatar XieZhiXiong

chore: 恢复代码

parent 8817fa99
......@@ -130,7 +130,15 @@ const NiceForm: React.FC<NiceFormProps> = props => {
useEffect(() => {
let paginationInfo: currentStateType = getCurrentState();
if(paginationInfo?.queryParams) {
// 一般 列表检索传入的 controlRender 的 NiceForm 是没有 value 或者 initialValues 的
// value 或者 initialValues 的,表单页有
if (
paginationInfo
&& match.path === paginationInfo.pathname
&& !('value' in reset)
&& !('initialValues' in reset)
) {
reset.actions.setFormState(
state => (state.values = paginationInfo.queryParams),
);
......
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