File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
admin-ui/src/pages/flow/leave Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,13 @@ const LeaveForm: React.FC<FlowFormViewProps> = (props) => {
1313
1414 useEffect ( ( ) => {
1515 props . form . setFieldsValue ( props . data ) ;
16- // 关闭意见输入框
17- props . opinionEditorVisible && props . opinionEditorVisible ( false ) ;
16+
17+ // 关闭意见输入框,仅当在开始节点关闭
18+ if ( props . flowData ?. getNodeCode ( ) === 'start' ) {
19+ props . opinionEditorVisible && props . opinionEditorVisible ( false ) ;
20+ } else {
21+ props . opinionEditorVisible && props . opinionEditorVisible ( true ) ;
22+ }
1823 } , [ ] ) ;
1924
2025 const triggerClickVisible = props . triggerClickVisible ;
@@ -61,7 +66,7 @@ const LeaveForm: React.FC<FlowFormViewProps> = (props) => {
6166 />
6267
6368 < Button
64- onClick = { ( ) => {
69+ onClick = { ( ) => {
6570 props . opinionEditorVisible && props . opinionEditorVisible ( ! opinionEditorVisible ) ;
6671 } }
6772 >
@@ -71,7 +76,7 @@ const LeaveForm: React.FC<FlowFormViewProps> = (props) => {
7176
7277 { triggerClickVisible && (
7378 < Button
74- onClick = { ( ) => {
79+ onClick = { ( ) => {
7580 props . clearTriggerClick && props . clearTriggerClick ( ) ;
7681 } }
7782 > 点击了自定义事件</ Button >
You can’t perform that action at this time.
0 commit comments