fix(接口定义): 修复保存case后,跟新人不一致的缺陷

--bug=1021165 --user=王孝刚 【接口测试】github#20861,接口case的更新人显示不正确
https://www.tapd.cn/55049933/s/1318446
This commit is contained in:
wxg0103 2022-12-22 15:24:08 +08:00 committed by wxg0103
parent 72688948ea
commit 04711d65fe
2 changed files with 5 additions and 0 deletions

View File

@ -605,6 +605,7 @@ export default {
if (!hideAlert) {
this.$emit('refresh');
}
this.$emit('refreshCaseList');
}, (error) => {
this.isSave = false;
});

View File

@ -22,6 +22,7 @@
<api-case-item
:loading="singleLoading && singleRunId ===item.id || batchLoadingIds.indexOf(item.id) > -1"
@refresh="refresh"
@refreshCaseList="refreshCaseList"
@singleRun="singleRun"
@stop="stop"
@refreshModule="refreshModule"
@ -410,6 +411,9 @@ export default {
refresh() {
this.$emit('refresh');
},
refreshCaseList() {
this.getApiTest(true,true);
},
reLoadCase() {
this.$emit('reLoadCase');
},