瀏覽代碼

fix FormController bug

wangweimin 5 年之前
父節點
當前提交
12ba174e8c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pywebio/html/js/form.js

+ 1 - 1
pywebio/html/js/form.js

@@ -406,7 +406,7 @@
             $.each(that.name2input_controllers, (name, ctrl) => {
                 data[name] = ctrl.get_value();
             });
-            ws.send(JSON.stringify({
+            that.ws_client.send(JSON.stringify({
                 event: "from_submit",
                 coro_id: that.coro_id,
                 data: data