suerprisePlus
2024-10-15 afd3fe35aeaae4f3984c94ca29d57b5a3a52107f
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>