fix(接口定义) 用例停止问题修复
This commit is contained in:
parent
57c6dfb398
commit
5b9a3c1bae
|
@ -198,8 +198,8 @@ export default {
|
||||||
this.api.method = apiCase.request.method
|
this.api.method = apiCase.request.method
|
||||||
this.api.name = apiCase.request.name;
|
this.api.name = apiCase.request.name;
|
||||||
}
|
}
|
||||||
if(apiCase.tags){
|
if (apiCase.tags) {
|
||||||
apiCase.tags =JSON.parse(apiCase.tags);
|
apiCase.tags = JSON.parse(apiCase.tags);
|
||||||
}
|
}
|
||||||
this.condition = {components: API_CASE_CONFIGS};
|
this.condition = {components: API_CASE_CONFIGS};
|
||||||
this.sysAddition(apiCase);
|
this.sysAddition(apiCase);
|
||||||
|
@ -414,11 +414,8 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
stop(id) {
|
stop(id) {
|
||||||
let url = "/api/automation/stop/" + this.reportId;
|
let obj = {type: "API", reportId: this.reportId};
|
||||||
this.$get(url, () => {
|
this.$post('/api/automation/stop/batch', [obj], response => {
|
||||||
// if (callback) {
|
|
||||||
// callback();
|
|
||||||
// }
|
|
||||||
this.$emit("stop", id);
|
this.$emit("stop", id);
|
||||||
this.singleLoading = false;
|
this.singleLoading = false;
|
||||||
this.$success(this.$t('report.test_stop_success'));
|
this.$success(this.$t('report.test_stop_success'));
|
||||||
|
|
Loading…
Reference in New Issue