Rodja Trappe 2 năm trước cách đây
mục cha
commit
6264fad410
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      nicegui/templates/index.html

+ 1 - 1
nicegui/templates/index.html

@@ -86,7 +86,7 @@
         },
         mounted() {
           const query = { client_id: {{ client_id }} };
-          window.socket = io("{{ socket_address }}", { path: "/ws/socket.io", query });//io("{{ prefix | safe }}/ws/socket.io", { query });
+          window.socket = io("{{ socket_address }}", { path: "/ws/socket.io", query: query });
           window.socket.on("update", (msg) => {
             Object.entries(msg.elements).forEach(([id, element]) => this.elements[element.id] = element);
           });