fix(接口定义): 修复场景列表执行结果重置失效的缺陷

--bug=1017842 --user=王孝刚 【接口测试】接口自动化-执行结果-重置无效
https://www.tapd.cn/55049933/s/1259526
This commit is contained in:
wxg0103 2022-10-12 15:00:15 +08:00 committed by f2c-ci-robot[bot]
parent 0c4ce0f831
commit ac8234a8ab
1 changed files with 3 additions and 1 deletions

View File

@ -748,7 +748,9 @@ export default {
this.apiDefaultTab = activeName
this.apiTabs = tabs.filter(tab => tab.name !== targetName);
this.$refs.mainTabs.$children = [];
this.$refs.apiDefList[0].refreshTable();
if (this.$refs.apiDefList[0]) {
this.$refs.apiDefList[0].refreshTable();
}
},
//
createRootModel() {