suerprisePlus
2024-10-23 559f0776123a2205863b5787d5b8e1e012d397d3
src/App.vue
@@ -24,14 +24,27 @@
  },
  data() {
    return {
      wsSocket: null
    }
  },
  mounted() {
  },
  methods: {
    createSocket() {
      this.wsSocket = new WebSocket(config.pySocket);
      this.wsSocket.onopen = (event) => {
        console.log('WebSocket连接成功');
      };
      this.wsSocket.onmessage = (event) => {
        if (event.data != "连接成功") {
        }
      };
    }
  }
};
</script>