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