Commit 77598422 authored by rockyl's avatar rockyl

Merge remote-tracking branch 'origin/dev' into dev

parents aed789d3 1c7c252a
......@@ -360,16 +360,28 @@ export const projectStore = {
let _node1 = node;
console.log(_node1)
copyNodeCatch = clonePureObj(_node1)
console.log("copyNodeCatch",copyNodeCatch)
if (copyState == 1) {
//复制行为
copyNodeCatch.events
} else if (copyState == 2) {
//不复制行为
delete copyNodeCatch.events
console.log(this)
deleteChildEvent(copyNodeCatch)
}
//copy(JSON.stringify(copyNodeCatch))
function deleteChildEvent(copyNodeCatch){
console.log(123)
delete copyNodeCatch.events;
if(copyNodeCatch.children){
for(let item of copyNodeCatch.children){
deleteChildEvent(item)
}
}
}
},
pasteNode(state, {node, parentNode, pasteState}) {
let _node1 = copyNodeCatch;
console.log(copyNodeCatch);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment