Skip to content

Commit

Permalink
Code clean
Browse files Browse the repository at this point in the history
  • Loading branch information
sscscc committed Apr 15, 2023
1 parent b91b8a2 commit 539c175
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/views/CodeEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,10 @@ endmodule\n"},
},
handleNodeClick(data) {
this.selected = data.type
var node = this.$refs.DeviceGroupTree.getCurrentNode()
if (node.type == "file")
this.content = node.text
else if(node.type == "ipcore")
this.ipcore_params = node.params
if (data.type == "file")
this.content = data.text
else if(data.type == "ipcore")
this.ipcore_params = data.params
},
params_change(){
this.notsaved = true
Expand Down

0 comments on commit 539c175

Please sign in to comment.