fix(接口测试): 修复接口测试创建新版本出现loading无法关闭的问题

--bug=1012738 --user=刘瑞斌 【接口测试】-创建接口-版本-新建-一直转圈-无法操作 https://www.tapd.cn/55049933/s/1147594
This commit is contained in:
CaptainB 2022-04-26 11:39:15 +08:00 committed by 刘瑞斌
parent 2e3705f6af
commit 604d845ab8
4 changed files with 15 additions and 0 deletions

View File

@ -190,6 +190,10 @@ export default {
this.$emit('saveApi', this.basisData);
this.$store.state.apiStatus.set("fromChange", false);
this.$store.state.apiMap.set(this.basisData.id, this.$store.state.apiStatus);
} else {
if (this.$refs.versionHistory) {
this.$refs.versionHistory.loading = false;
}
}
},
runTest() {

View File

@ -470,6 +470,9 @@ export default {
this.$store.state.apiStatus.set("fromChange", false);
this.$store.state.apiMap.set(this.httpForm.id, this.$store.state.apiStatus);
} else {
if (this.$refs.versionHistory) {
this.$refs.versionHistory.loading = false;
}
return false;
}
});

View File

@ -192,6 +192,10 @@ export default {
this.$emit('saveApi', this.basisData);
this.$store.state.apiStatus.set("fromChange", false);
this.$store.state.apiMap.set(this.basisData.id, this.$store.state.apiStatus);
} else {
if (this.$refs.versionHistory) {
this.$refs.versionHistory.loading = false;
}
}
},
runTest() {

View File

@ -278,6 +278,10 @@ export default {
this.$emit('saveApi', this.basisData);
this.$store.state.apiStatus.set("fromChange", false);
this.$store.state.apiMap.set(this.basisData.id, this.$store.state.apiStatus);
} else {
if (this.$refs.versionHistory) {
this.$refs.versionHistory.loading = false;
}
}
},
runTest() {