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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,4 +216,4 @@ p {
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
</TabView>
|
</TabView>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue