Showing
1 changed file
with
2 additions
and
5 deletions
| ... | @@ -1327,17 +1327,16 @@ export default { | ... | @@ -1327,17 +1327,16 @@ export default { |
| 1327 | */ | 1327 | */ |
| 1328 | function handleAfterAdd(model: myObj, type: string) { | 1328 | function handleAfterAdd(model: myObj, type: string) { |
| 1329 | if (type === 'node') { | 1329 | if (type === 'node') { |
| 1330 | - console.log(`新增节点`) | 1330 | + // console.log(`新增节点`) |
| 1331 | flowData.value.nodes = editor.editorState.graph.save().nodes | 1331 | flowData.value.nodes = editor.editorState.graph.save().nodes |
| 1332 | } | 1332 | } |
| 1333 | if (type === 'edge') { | 1333 | if (type === 'edge') { |
| 1334 | - console.log(`新增连接线`) | 1334 | + // console.log(`新增连接线`) |
| 1335 | flowData.value.edges = editor.editorState.graph.save().edges | 1335 | flowData.value.edges = editor.editorState.graph.save().edges |
| 1336 | } | 1336 | } |
| 1337 | } | 1337 | } |
| 1338 | 1338 | ||
| 1339 | function onClickCanvas(e: myEvent) { | 1339 | function onClickCanvas(e: myEvent) { |
| 1340 | - console.log('单击画布'); | ||
| 1341 | state.detailModel = null; | 1340 | state.detailModel = null; |
| 1342 | editor.closeModel() | 1341 | editor.closeModel() |
| 1343 | } | 1342 | } |
| ... | @@ -1348,9 +1347,7 @@ export default { | ... | @@ -1348,9 +1347,7 @@ export default { |
| 1348 | * @param {myEvent} e - The event object containing information about the drag and drop. | 1347 | * @param {myEvent} e - The event object containing information about the drag and drop. |
| 1349 | */ | 1348 | */ |
| 1350 | function onDragEndNode(e: myEvent) { | 1349 | function onDragEndNode(e: myEvent) { |
| 1351 | - // TODO:可能需要接口保存相应位置,避免拖动窗口时数据丢失 | ||
| 1352 | const model = e.item.get('model') | 1350 | const model = e.item.get('model') |
| 1353 | - console.log('onDragEndNode', model) | ||
| 1354 | } | 1351 | } |
| 1355 | 1352 | ||
| 1356 | const copyData = () => { // 复制节点回调 | 1353 | const copyData = () => { // 复制节点回调 | ... | ... |
-
Please register or login to post a comment