fix(接口定义):修复删除CASE时没有“确认删除”弹窗 (#1571)
Co-authored-by: 黎龙鑫 <lilongxinya@163.com>
This commit is contained in:
parent
2cb7aa6256
commit
a687ccce8e
|
@ -473,9 +473,16 @@ export default {
|
|||
},
|
||||
handleDelete(apiCase) {
|
||||
// if (this.trashEnable) {
|
||||
this.$get('/api/testcase/delete/' + apiCase.id, () => {
|
||||
this.$success(this.$t('commons.delete_success'));
|
||||
this.initTable();
|
||||
this.$alert(this.$t('api_test.definition.request.delete_confirm') + ' ' + apiCase.name + " ?", '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
this.$get('/api/testcase/delete/' + apiCase.id, () => {
|
||||
this.$success(this.$t('commons.delete_success'));
|
||||
this.initTable();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue