MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / handleOk

Function handleOk

src/pages/Workspace/BluePrint.jsx:334–340  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

332 props.closeBluePrint()
333 };
334 const handleOk = () => {
335 const saveNodeData = graph.save(); // 保存当前蓝图编辑器数据
336 // console.log(graph.getNodes());
337 const result = analysisNode(saveNodeData)
338 props.onPropertyChange({ path: 'bluePrintConfig', value: { analysisData: result, nodeData: saveNodeData, allNodeConfig } }, 'bluePrint', 'bluePrint')
339 handleCancel()
340 };
341 const getNodeProperty = (type, id, name) => {
342 /**
343 * @name: 初始化node属性

Callers

nothing calls this directly

Calls 2

analysisNodeFunction · 0.85
handleCancelFunction · 0.70

Tested by

no test coverage detected