u
This commit is contained in:
@@ -123,7 +123,22 @@
|
||||
if (client_id === this.client_id) {
|
||||
console.log('self msg')
|
||||
} else {
|
||||
|
||||
const evt = msg_json.evt
|
||||
const data_array = msg_json.data
|
||||
// console.log(msg_json)
|
||||
if ('add_node' === evt) {
|
||||
this._jm.add_node(data_array[0], data_array[1], data_array[2], null, true)
|
||||
} else if ('insert_node_before' === evt) {
|
||||
this._jm.insert_node_before(data_array[0], data_array[1], data_array[2], null, true)
|
||||
} else if ('insert_node_after' === evt) {
|
||||
this._jm.insert_node_after(data_array[0], data_array[1], data_array[2], null, true)
|
||||
} else if ('remove_node' === evt) {
|
||||
this._jm.remove_node(data_array[0], true)
|
||||
} else if ('update_node' === evt) {
|
||||
this._jm.update_node(data_array[0], data_array[1], true)
|
||||
} else if ('move_node' === evt) {
|
||||
this._jm.move_node(data_array[0], data_array[1], data_array[2], data_array[3], true)
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user