From 4dcbe0182cca2c844bfa89de0dfd40442b93aa81 Mon Sep 17 00:00:00 2001 From: hLinx <327159425@qq.com> Date: Mon, 28 Nov 2022 15:49:26 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E4=BD=93=E9=AA=8C=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20#1461?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/components/ace-editor/default-script.js | 4 ++-- .../selector-box/components/result-preview/view-host.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/components/ace-editor/default-script.js b/src/frontend/src/components/ace-editor/default-script.js index 62d72fc357..3d3a51485e 100644 --- a/src/frontend/src/components/ace-editor/default-script.js +++ b/src/frontend/src/components/ace-editor/default-script.js @@ -88,8 +88,8 @@ export default { '', '', '', - // 'REM 函数定定义区域,不要把正文写到函数区下面 ', - lang === 'zh-CN' ? 'REM 函数定定义区域,不要把正文写到函数区下面 ' : 'REM Function definition area, do not write the text below the function area', + // 'REM 函数自定义区域,不要把正文写到函数区下面 ', + lang === 'zh-CN' ? 'REM 函数自定义区域,不要把正文写到函数区下面 ' : 'REM Function definition area, do not write the text below the function area', 'goto:eof', lang === 'zh-CN' ? 'REM 可在脚本开始运行时调用,打印当时的时间戳及PID。' : 'REM It\'s usually called when the script starts to run, prints the timestamp and PID.', ':job_start', diff --git a/src/frontend/src/components/ip-selector/selector-box/components/result-preview/view-host.vue b/src/frontend/src/components/ip-selector/selector-box/components/result-preview/view-host.vue index 8f128f5eb4..6c6967fa3a 100644 --- a/src/frontend/src/components/ip-selector/selector-box/components/result-preview/view-host.vue +++ b/src/frontend/src/components/ip-selector/selector-box/components/result-preview/view-host.vue @@ -161,7 +161,7 @@ // 移除单个IP const handleRemove = (removeTarget) => { const result = props.data.reduce((result, item) => { - if (removeTarget !== item) { + if (removeTarget.host_id !== item.host_id) { result.push(item); } return result;