Commit f9a36f65 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复数据不存在报错的问题

parent 2549959a
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-26 16:52:48
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-17 10:46:31
* @LastEditTime: 2021-06-30 10:05:10
* @Description: 申请会员
*/
import React, { useState, useEffect, useRef } from 'react';
......@@ -164,12 +164,9 @@ const MemberQueryApplyMember: React.FC = () => {
}, []);
const handleSubmit = (values: ValueType) => {
const {
step3,
step4: {
qualities = [],
},
} = values;
const step3 = values.step3 || {};
// 没有触发 step4 下的表单元素改变的话,step4 为 undefined
const { qualities = [] } = values.step4 || {};
setSubmitLoading(true);
const msg = message.loading({
content: '正在保存,请稍候...',
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-26 17:00:39
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-15 14:05:18
* @LastEditTime: 2021-06-30 09:55:17
* @Description:
*/
import { ISchema } from '@formily/antd';
......
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