refactor(接口测试): 关闭场景时清空引用对象

This commit is contained in:
wxg0103 2022-03-14 18:17:46 +08:00 committed by fit2-zhao
parent 0deb4d8594
commit 5b1f2e80da
1 changed files with 4 additions and 0 deletions

View File

@ -469,6 +469,10 @@ export default {
} else {
this.activeName = "default";
}
let index = this.tabs.findIndex(item => item.name === targetName);
if (index !== -1) {
this.tabs.splice(index, 1);
}
},
setTabLabel(data) {
for (const tab of this.tabs) {