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); } }