style: 中断执行提示中断
This commit is contained in:
@@ -675,7 +675,7 @@ export default {
|
|||||||
execTimeout: 'Execution timeout',
|
execTimeout: 'Execution timeout',
|
||||||
execSuccess: 'Execution completed',
|
execSuccess: 'Execution completed',
|
||||||
execFailed: 'Execution failed',
|
execFailed: 'Execution failed',
|
||||||
execBreak: 'break execution',
|
execBreak: 'Break Execution',
|
||||||
noFileName: 'Invalid file name',
|
noFileName: 'Invalid file name',
|
||||||
execUPFStartA: 'Executed, please stop capturing packets according to the situation',
|
execUPFStartA: 'Executed, please stop capturing packets according to the situation',
|
||||||
execUPFStart: 'Execution successful, please stop capturing packets according to the situation',
|
execUPFStart: 'Execution successful, please stop capturing packets according to the situation',
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ function fnStart() {
|
|||||||
cmd: from.cmd,
|
cmd: from.cmd,
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
|
console.log(res)
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: t('views.traceManage.pcap.execSuccess'),
|
content: t('views.traceManage.pcap.execSuccess'),
|
||||||
@@ -151,7 +152,7 @@ function fnStart() {
|
|||||||
msg.indexOf('tcpdump: listening on any,') !== -1;
|
msg.indexOf('tcpdump: listening on any,') !== -1;
|
||||||
} else if (
|
} else if (
|
||||||
res.code === RESULT_CODE_ERROR &&
|
res.code === RESULT_CODE_ERROR &&
|
||||||
res.msg.includes('timeout')
|
res.msg.includes('imeout')
|
||||||
) {
|
) {
|
||||||
message.warning({
|
message.warning({
|
||||||
content: t('views.traceManage.pcap.execBreak'),
|
content: t('views.traceManage.pcap.execBreak'),
|
||||||
|
|||||||
Reference in New Issue
Block a user