|
@@ -929,6 +929,7 @@ export default {
|
|
bus.on("goHome", () => {
|
|
bus.on("goHome", () => {
|
|
this.isConnected = false;
|
|
this.isConnected = false;
|
|
this.$store.dispatch("common/setSquareStatus", false);
|
|
this.$store.dispatch("common/setSquareStatus", false);
|
|
|
|
+ this.$store.dispatch("common/setConnectedStatus", false);
|
|
});
|
|
});
|
|
|
|
|
|
let autoCurrentTaskData = window.localStorage.getItem(
|
|
let autoCurrentTaskData = window.localStorage.getItem(
|
|
@@ -1525,6 +1526,7 @@ export default {
|
|
ws.connectBench({ bench_id: String(benchId) })
|
|
ws.connectBench({ bench_id: String(benchId) })
|
|
.then((res) => {
|
|
.then((res) => {
|
|
self.isConnected = true;
|
|
self.isConnected = true;
|
|
|
|
+ this.$store.dispatch("common/setConnectedStatus", true);
|
|
console.log("connect bench success");
|
|
console.log("connect bench success");
|
|
this.currentScreen = "upper";
|
|
this.currentScreen = "upper";
|
|
self.setSendAudioBus(benchId);
|
|
self.setSendAudioBus(benchId);
|
|
@@ -2235,6 +2237,7 @@ export default {
|
|
this.benchDisplayVisible = false;
|
|
this.benchDisplayVisible = false;
|
|
this.benchDisplayLowerVisible = false;
|
|
this.benchDisplayLowerVisible = false;
|
|
this.isConnected = false;
|
|
this.isConnected = false;
|
|
|
|
+ this.$store.dispatch("common/setConnectedStatus", false);
|
|
}
|
|
}
|
|
);
|
|
);
|
|
},
|
|
},
|