Skip to content

Commit c8d2062

Browse files
committed
fix test
1 parent c4578c9 commit c8d2062

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

admin-ui/src/components/Flow/flow/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export interface FlowFormParams {
7070
// 关闭结果视图事件
7171
export const EVENT_CLOSE_RESULT_VIEW = 'EVENT_CLOSE_RESULT_VIEW';
7272
// 重新加载数据事件
73-
export const EVENT_RELOAD_DARA = 'EVENT_RELOAD_DARA';
73+
export const EVENT_RELOAD_DATA = 'EVENT_RELOAD_DATA';
7474

7575
export const PostponedFormViewKey = 'PostponedFormView';
7676

admin-ui/src/pages/flow/leave/LeaveForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, {useEffect} from "react";
22
import {ProForm, ProFormDigit, ProFormText, ProFormTextArea} from "@ant-design/pro-components";
3-
import {EVENT_CLOSE_RESULT_VIEW, EVENT_RELOAD_DARA, FlowFormViewProps} from "@/components/Flow/flow/types";
3+
import {EVENT_CLOSE_RESULT_VIEW, EVENT_RELOAD_DATA, FlowFormViewProps} from "@/components/Flow/flow/types";
44
import {Button} from "antd";
55
import {useSelector} from "react-redux";
66
import {FlowReduxState} from "@/components/Flow/store/FlowSlice";
@@ -43,7 +43,7 @@ const LeaveForm: React.FC<FlowFormViewProps> = (props) => {
4343
props.handlerClick && props.handlerClick({type: "RELOAD"});
4444
}
4545

46-
if (eventKey==EVENT_RELOAD_DARA) {
46+
if (eventKey==EVENT_RELOAD_DATA) {
4747
props.form.resetFields();
4848
props.form.setFieldsValue(props.data);
4949
}

0 commit comments

Comments
 (0)