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:16:52 +08:00 committed by wxg0103
parent e243328f63
commit 0765d0086b
2 changed files with 5 additions and 0 deletions

View File

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

View File

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