shuishen
2022-02-21 ed9709a6e101a7f2eca4403f93e7aa4f71a78220
App.vue
@@ -34,13 +34,13 @@
      },
      watch: {
         socketValue() {
            console.log(this.socketValue);
            // console.log(this.socketValue);
            let that = this;
            if (that.socketValue.type === "start") {
               console.log("任务开启")
               // console.log("任务开启")
               this.$store.commit("addTask", this.socketValue.rid);
            } else if (that.socketValue.type === "stop") {
               console.log("任务结束")
               // console.log("任务结束")
               this.$store.commit("stopTask", this.socketValue.rid);
            }
         }