Commit 3a150a9f authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复理由必填但是没有触发error的问题

parent eadd20ce
......@@ -127,6 +127,8 @@ const VerifyComingDataDrawer: React.FC<IProps> = (props: IProps) => {
setFieldState('reason', state => {
state.title = fieldState.value === 0 ? intl.formatMessage({ id: 'member.management.common.form.reason.noPass' }) : intl.formatMessage({ id: 'member.management.common.form.reason.pass' });
state.required = fieldState.value === 0;
// 手动改变一个 value,目的是为了触发 必填校验
state.value = state.value || '';
setTimeout(() => {
formActions.validate('reason');
}, 0);
......
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