fix: 工具ipfer操作客户端host输入判断
This commit is contained in:
@@ -63,7 +63,11 @@ async function fnIPerf3() {
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (state.dataType === 'options' && state.data.host === '') {
|
if (
|
||||||
|
state.dataType === 'options' &&
|
||||||
|
state.data.client &&
|
||||||
|
state.data.host === ''
|
||||||
|
) {
|
||||||
message.warning({
|
message.warning({
|
||||||
content: 'Please fill in the Host',
|
content: 'Please fill in the Host',
|
||||||
duration: 2,
|
duration: 2,
|
||||||
@@ -77,9 +81,12 @@ async function fnIPerf3() {
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (state.initialized) {
|
|
||||||
fnResend();
|
// 网元切换时重置
|
||||||
return;
|
if (neType !== state.params.neType || neId !== state.params.neId) {
|
||||||
|
state.initialized = false;
|
||||||
|
state.params.neType = neType;
|
||||||
|
state.params.neId = neId;
|
||||||
}
|
}
|
||||||
|
|
||||||
state.params.neType = neType;
|
state.params.neType = neType;
|
||||||
@@ -95,6 +102,12 @@ async function fnIPerf3() {
|
|||||||
} else {
|
} else {
|
||||||
state.versionInfo = resVersion.data;
|
state.versionInfo = resVersion.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 初始化的直接重发
|
||||||
|
if (state.initialized) {
|
||||||
|
fnResend();
|
||||||
|
return;
|
||||||
|
}
|
||||||
state.initialized = true;
|
state.initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user