diff --git a/simple-mind-map/src/core/command/Command.js b/simple-mind-map/src/core/command/Command.js index 3e640a71..fc25ec47 100644 --- a/simple-mind-map/src/core/command/Command.js +++ b/simple-mind-map/src/core/command/Command.js @@ -61,6 +61,7 @@ class Command { this.commands[name].forEach(fn => { fn(...args) }) + this.mindMap.emit('afterExecCommand', name, ...args) if ( ['BACK', 'FORWARD', 'SET_NODE_ACTIVE', 'CLEAR_ACTIVE_NODE'].includes( name