Commit edab8329 authored by 任建锋's avatar 任建锋

--

parent ef8a957f
...@@ -93,6 +93,9 @@ ...@@ -93,6 +93,9 @@
return url return url
}, },
getNode(type) { getNode(type) {
if(!this.$refs.runtimeLayer){
return;
}
if(type=="end"){ if(type=="end"){
this.targetNode = this.$refs.runtimeLayer.getNode(this.nodePath); this.targetNode = this.$refs.runtimeLayer.getNode(this.nodePath);
//console.log("this.targetNode",this.targetNode) //console.log("this.targetNode",this.targetNode)
......
...@@ -410,6 +410,9 @@ export default { ...@@ -410,6 +410,9 @@ export default {
}, },
targetNode:function(){ targetNode:function(){
console.log("targetNode变化",this.targetNode) console.log("targetNode变化",this.targetNode)
if(!this.targetNode){
return
}
let { let {
x, x,
y, y,
......
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