fix (接口自动化): 删除场景提示优化 #1006090

--bug=1006090 --user=赵勇 【接口自动化】-删除场... https://www.tapd.cn/55049933/s/1038099
This commit is contained in:
fit2-zhao 2021-08-23 17:26:19 +08:00 committed by fit2-zhao
parent a37bca2c33
commit a38b3998b4
1 changed files with 4 additions and 4 deletions

View File

@ -797,14 +797,14 @@ export default {
this.$post('/api/automation/checkBeforeDelete/', param, response => {
let checkResult = response.data;
let alertMsg = this.$t('api_test.definition.request.delete_confirm') + " ";
let alertMsg = this.$t('load_test.delete_threadgroup_confirm') + " ";
if(!checkResult.deleteFlag){
alertMsg = "";
checkResult.checkMsg.forEach(item => {
alertMsg+=item+";";
});
if(alertMsg === ""){
alertMsg = this.$t('api_test.definition.request.delete_confirm') + " ";
alertMsg = this.$t('load_test.delete_threadgroup_confirm') + " ";
} else {
alertMsg += this.$t('api_test.is_continue') + " ";
}
@ -875,14 +875,14 @@ export default {
param.ids = [row.id];
this.$post('/api/automation/checkBeforeDelete/', param, response => {
let checkResult = response.data;
let alertMsg = this.$t('api_test.definition.request.delete_confirm') +" ";
let alertMsg = this.$t('load_test.delete_threadgroup_confirm') +" ";
if(!checkResult.deleteFlag){
alertMsg = "";
checkResult.checkMsg.forEach(item => {
alertMsg+=item+";";
});
if(alertMsg === ""){
alertMsg = this.$t('api_test.definition.request.delete_confirm') +" ";
alertMsg = this.$t('load_test.delete_threadgroup_confirm') +" ";
} else {
alertMsg += this.$t('api_test.is_continue') + " ";
}