From 7aa0cf8fd931ce37323591e5d8bd40f22cba8659 Mon Sep 17 00:00:00 2001 From: naibo Date: Sun, 9 Jul 2023 03:19:16 +0800 Subject: [PATCH] Bug fix --- ElectronJS/src/taskGrid/logic.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ElectronJS/src/taskGrid/logic.js b/ElectronJS/src/taskGrid/logic.js index 25a5e78..23a736e 100644 --- a/ElectronJS/src/taskGrid/logic.js +++ b/ElectronJS/src/taskGrid/logic.js @@ -80,6 +80,8 @@ function handleAddElement(msg) { app._data["nowNode"]["parameters"]["paras"].push(msg["parameters"][i]); } app._data.paras.parameters = app._data["nowNode"]["parameters"]["paras"]; + setTimeout(function(){$("#app > div.elements > div.toolkitcontain > table.toolkittb4 > tbody > tr:last-child")[0].scrollIntoView(false); //滚动到底部 + }, 200); } else { addElement(3, msg); } @@ -106,7 +108,7 @@ function notifyParameterNum(num) { from: 1, //0代表从浏览器到流程图,1代表从流程图到浏览器 message: { "pipe": JSON.stringify({ "type": 0, "value": parameterNum }) } // {}全选{BS}退格 }; - window.ws.send(JSON.stringify(message)); + ws.send(JSON.stringify(message)); }