commit
e6c2d774e3
|
@ -176,14 +176,14 @@ export default {
|
|||
response = "Unknown command: " + command;
|
||||
}
|
||||
|
||||
TerminalService.$emit('response', response);
|
||||
TerminalService.emit('response', response);
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
TerminalService.$on('command', this.commandHandler);
|
||||
TerminalService.on('command', this.commandHandler);
|
||||
},
|
||||
beforeUnmount() {
|
||||
TerminalService.$off('command', this.commandHandler);
|
||||
TerminalService.off('command', this.commandHandler);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -216,4 +216,4 @@ p {
|
|||
</TabPanel>
|
||||
</TabView>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue