refactor: 性能测试删除支持指定版本

This commit is contained in:
CaptainB 2022-01-20 15:14:15 +08:00 committed by 刘瑞斌
parent 74c9847501
commit 37ce44c5a6
1 changed files with 3 additions and 1 deletions

View File

@ -263,7 +263,8 @@ export default {
if (deleteCurrentVersion) {
this.$get('performance/delete/' + test.id + '/' + test.refId, () => {
this.$success(this.$t('commons.delete_success'));
this.getVersionHistory();
this.initTableData();
this.$refs.apiDeleteConfirm.close();
});
} else {
let data = {
@ -272,6 +273,7 @@ export default {
this.result = this.$post(this.deletePath, data, () => {
this.$success(this.$t('commons.delete_success'));
this.initTableData();
this.$refs.apiDeleteConfirm.close();
});
}
},