Feat:新增抛出命令执行后的事件

This commit is contained in:
街角小林 2024-12-09 18:10:18 +08:00
parent 2a7eaefac5
commit 2a76f5a0bc

View File

@ -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