Feat:新增抛出命令执行后的事件
This commit is contained in:
parent
2a7eaefac5
commit
2a76f5a0bc
@ -61,6 +61,7 @@ class Command {
|
|||||||
this.commands[name].forEach(fn => {
|
this.commands[name].forEach(fn => {
|
||||||
fn(...args)
|
fn(...args)
|
||||||
})
|
})
|
||||||
|
this.mindMap.emit('afterExecCommand', name, ...args)
|
||||||
if (
|
if (
|
||||||
['BACK', 'FORWARD', 'SET_NODE_ACTIVE', 'CLEAR_ACTIVE_NODE'].includes(
|
['BACK', 'FORWARD', 'SET_NODE_ACTIVE', 'CLEAR_ACTIVE_NODE'].includes(
|
||||||
name
|
name
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user