fix(接口测试): 修复在tcp接口编辑页面切换到sql的接口,页面会变空白的缺陷

--bug=1010460 --user=王孝刚 【接口测试】在tcp接口编辑页面切换到sql的接口,页面会变空白
https://www.tapd.cn/55049933/s/1107191
This commit is contained in:
wxg0103 2022-02-22 10:54:15 +08:00 committed by 刘瑞斌
parent 3c06bbff0e
commit c15128a303
1 changed files with 1 additions and 1 deletions

View File

@ -564,7 +564,7 @@ export default {
let tab = this.apiTabs;
delete tab[0];
tab.forEach(t => {
if (t.api && this.$store.state.apiMap.has(t.api.id) && (this.$store.state.apiMap.get(t.api.id).get("responseChange") === true || this.$store.state.apiMap.get(t.api.id).get("requestChange") === true ||
if (t.type === 'ADD' && t.api && this.$store.state.apiMap.has(t.api.id) && (this.$store.state.apiMap.get(t.api.id).get("responseChange") === true || this.$store.state.apiMap.get(t.api.id).get("requestChange") === true ||
this.$store.state.apiMap.get(t.api.id).get("fromChange") === true)) {
message += t.api.name + "";
}