fix 修复默认关闭时可能会关闭不可关闭窗口的问题

This commit is contained in:
2021-04-28 11:25:23 +08:00
parent 449d27d5a1
commit 3a98bc886f

View File

@@ -144,7 +144,7 @@ export default {
onCloseContentWindow(key) {
key = key || this.tabActived;
const i = this.$_.findIndex(this.panes, (p) => p.key === key);
const i = this.$_.findIndex(this.panes, (p) => p.key === key && p.closable);
this.panes.splice(i, 1);
if (this.panes.length) {