wu
2024-01-23 6b8f5b27be57413aae81b3505878b71097b0751e
CanadaMes-ui/src/layout/index.vue
@@ -130,7 +130,7 @@
// import Tag from '../layout/tag.vue';
// import store from '../store';
let socket;
let timer;
export default {
  name: "Layout",
  // store,
@@ -231,7 +231,7 @@
    },
    init() {
      let viewname = "Home";
      let viewname = "Layout";
      if (typeof (WebSocket) == "undefined") {
        console.log("您的浏览器不支持WebSocket");
      } else {
@@ -289,8 +289,6 @@
          if (obj.Abort) {
            if (obj.Abort[0].length > 0) {
@@ -314,8 +312,9 @@
    },
    //45秒复位倒数计时
    CountDown() {
      clearInterval(timer);
      let count = 45;
      let timer = setInterval(
      timer = setInterval(
        () => {
          if (this.EmergencyStop == true) {
            this.dialogFormCountDown = false;
@@ -340,7 +339,7 @@
        },
        1000
      );
      if (this.reset == false) {
      if (this.reset == false && this.EmergencyStop != true) {
        this.dialogFormCountDown = true;
      }
    },