refactor: 性能测试删除支持指定版本
This commit is contained in:
parent
74c9847501
commit
37ce44c5a6
|
@ -263,7 +263,8 @@ export default {
|
||||||
if (deleteCurrentVersion) {
|
if (deleteCurrentVersion) {
|
||||||
this.$get('performance/delete/' + test.id + '/' + test.refId, () => {
|
this.$get('performance/delete/' + test.id + '/' + test.refId, () => {
|
||||||
this.$success(this.$t('commons.delete_success'));
|
this.$success(this.$t('commons.delete_success'));
|
||||||
this.getVersionHistory();
|
this.initTableData();
|
||||||
|
this.$refs.apiDeleteConfirm.close();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
let data = {
|
let data = {
|
||||||
|
@ -272,6 +273,7 @@ export default {
|
||||||
this.result = this.$post(this.deletePath, data, () => {
|
this.result = this.$post(this.deletePath, data, () => {
|
||||||
this.$success(this.$t('commons.delete_success'));
|
this.$success(this.$t('commons.delete_success'));
|
||||||
this.initTableData();
|
this.initTableData();
|
||||||
|
this.$refs.apiDeleteConfirm.close();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue