Commit 7141d662 authored by XieZhiXiong's avatar XieZhiXiong

chore: 修复新值没有覆盖旧值的问题

parent f0bdf628
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-07-02 15:30:48
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-09-30 17:02:09
* @LastEditTime: 2021-11-26 18:15:44
* @Description: 操作 Modal
*/
import React, { useRef } from 'react';
......@@ -67,11 +67,11 @@ const ActionModal: React.FC<IProps> = (props) => {
const formRef = useRef<ReasonFormRefHandle | EditFormRefHandle | null>(null);
const handleReasonSubmit = (values: ReasonValueType) => {
onConfirm({ reason: values.reason, ...value }, modalName);
onConfirm({ ...value, reason: values.reason }, modalName);
};
const handleEditSubmit = (values: EditSubmitValueType) => {
onConfirm({ ...values, ...value }, modalName);
onConfirm({ ...value, ...values }, modalName);
};
const handleConfirm = () => {
......
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