Commit 88dbc8fb authored by xxx's avatar xxx

1

parent cbe71d47
......@@ -239,16 +239,14 @@ export default {
},
methods:{
getSerialSendIndex() {
//console.log(123);
window.SerialPort.send("hello");
getSerialSendIndex(str) {
window.SerialPort.send(str);
this.getSerialReceiveIndex();
},
getSerialReceiveIndex() {
//console.log(123);
let cont = "";
console.log(window.SerialPort.receive());
cont = window.SerialPort.receive()
window.alert(cont);
console.log('SerialPort',cont);
},
//初始化weosocket
initWebSocketIndex(){
......@@ -276,7 +274,7 @@ export default {
return
}else{
if(this.antennaConnectorBoolean){
this.getSerialSendIndex(e.data)
}else{
this.antennaConnectorBoolean = true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment