refactor(接口测试): 关闭场景时清空引用对象
This commit is contained in:
parent
0deb4d8594
commit
5b1f2e80da
|
@ -469,6 +469,10 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.activeName = "default";
|
this.activeName = "default";
|
||||||
}
|
}
|
||||||
|
let index = this.tabs.findIndex(item => item.name === targetName);
|
||||||
|
if (index !== -1) {
|
||||||
|
this.tabs.splice(index, 1);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
setTabLabel(data) {
|
setTabLabel(data) {
|
||||||
for (const tab of this.tabs) {
|
for (const tab of this.tabs) {
|
||||||
|
|
Loading…
Reference in New Issue