From dd8dc63eab24cc9e81f4fa8ebd6d1f51c522bd6e Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 6 Dec 2023 16:59:40 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=B8=AD=E6=96=AD=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=B8=AD=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/locales/en-US.ts | 2 +- src/views/traceManage/pcap/index.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 86b4bc47..366453f7 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -675,7 +675,7 @@ export default { execTimeout: 'Execution timeout', execSuccess: 'Execution completed', execFailed: 'Execution failed', - execBreak: 'break execution', + execBreak: 'Break Execution', noFileName: 'Invalid file name', execUPFStartA: 'Executed, please stop capturing packets according to the situation', execUPFStart: 'Execution successful, please stop capturing packets according to the situation', diff --git a/src/views/traceManage/pcap/index.vue b/src/views/traceManage/pcap/index.vue index 1e2e20d8..7c93d956 100644 --- a/src/views/traceManage/pcap/index.vue +++ b/src/views/traceManage/pcap/index.vue @@ -136,6 +136,7 @@ function fnStart() { cmd: from.cmd, }) .then(res => { + console.log(res) if (res.code === RESULT_CODE_SUCCESS) { message.success({ content: t('views.traceManage.pcap.execSuccess'), @@ -151,7 +152,7 @@ function fnStart() { msg.indexOf('tcpdump: listening on any,') !== -1; } else if ( res.code === RESULT_CODE_ERROR && - res.msg.includes('timeout') + res.msg.includes('imeout') ) { message.warning({ content: t('views.traceManage.pcap.execBreak'),