commit
e6c2d774e3
|
@ -176,14 +176,14 @@ export default {
|
||||||
response = "Unknown command: " + command;
|
response = "Unknown command: " + command;
|
||||||
}
|
}
|
||||||
|
|
||||||
TerminalService.$emit('response', response);
|
TerminalService.emit('response', response);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
TerminalService.$on('command', this.commandHandler);
|
TerminalService.on('command', this.commandHandler);
|
||||||
},
|
},
|
||||||
beforeUnmount() {
|
beforeUnmount() {
|
||||||
TerminalService.$off('command', this.commandHandler);
|
TerminalService.off('command', this.commandHandler);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue