fix(测试跟踪): 删除当前用例刷列表 & tab 页切换等问题

This commit is contained in:
zhangdahai112 2022-01-25 19:59:18 +08:00 committed by 刘瑞斌
parent e7a7c2e8d4
commit 07507ccd6c
1 changed files with 2 additions and 1 deletions

View File

@ -711,7 +711,7 @@ export default {
this.$emit("refreshTestCase",); this.$emit("refreshTestCase",);
this.$store.state.testCaseMap.delete(this.form.id); this.$store.state.testCaseMap.delete(this.form.id);
//this.tableType = 'edit'; //this.tableType = 'edit';
this.$emit("refresh", this.form); this.$emit("refresh", response.data);
if (this.form.id) { if (this.form.id) {
this.$emit("caseEdit", param); this.$emit("caseEdit", param);
} else { } else {
@ -1014,6 +1014,7 @@ export default {
this.$get('/test/case/delete/' + row.id + '/' + this.form.refId, () => { this.$get('/test/case/delete/' + row.id + '/' + this.form.refId, () => {
this.$success(this.$t('commons.delete_success')); this.$success(this.$t('commons.delete_success'));
this.getVersionHistory(); this.getVersionHistory();
this.$emit("refresh");
}); });
} else { } else {
that.$refs.versionHistory.loading = false; that.$refs.versionHistory.loading = false;