Showing
1 changed file
with
3 additions
and
1 deletions
| ... | @@ -2108,6 +2108,8 @@ export default { | ... | @@ -2108,6 +2108,8 @@ export default { |
| 2108 | * @return {Promise} A promise that resolves when the event is handled. | 2108 | * @return {Promise} A promise that resolves when the event is handled. |
| 2109 | */ | 2109 | */ |
| 2110 | async function handleBeforeDelete( model: myObj, type: string): Promise<any> { | 2110 | async function handleBeforeDelete( model: myObj, type: string): Promise<any> { |
| 2111 | + // if (!state.main_attr_set) 点击打开了更多属性选项卡 { return Promise.reject('reject') } | ||
| 2112 | + | ||
| 2111 | let { nodes, edges } = editor.editorState.graph.save(); | 2113 | let { nodes, edges } = editor.editorState.graph.save(); |
| 2112 | 2114 | ||
| 2113 | let start_edge_count = edges.filter((edge: { source: string }) => edge.source === 'start-node'); // 连接到开始节点连接线的数量 | 2115 | let start_edge_count = edges.filter((edge: { source: string }) => edge.source === 'start-node'); // 连接到开始节点连接线的数量 |
| ... | @@ -2662,7 +2664,7 @@ export default { | ... | @@ -2662,7 +2664,7 @@ export default { |
| 2662 | } else { | 2664 | } else { |
| 2663 | let flow_id = getFlowId(); | 2665 | let flow_id = getFlowId(); |
| 2664 | let _path = urlQuery._path? urlQuery._path : ''; | 2666 | let _path = urlQuery._path? urlQuery._path : ''; |
| 2665 | - state.preview_form_url = `/admin/?a=flow&t=view&m=mod&p=${_path}&_flow=${flow_id}&_flow_node=${model.id}`; | 2667 | + state.preview_form_url = `/admin/?a=flow&t=view&p=${_path}&_flow=${flow_id}&_flow_node=${model.id}`; |
| 2666 | } | 2668 | } |
| 2667 | } | 2669 | } |
| 2668 | 2670 | ... | ... |
-
Please register or login to post a comment