fix 修复默认关闭时可能会关闭不可关闭窗口的问题
This commit is contained in:
@@ -144,7 +144,7 @@ export default {
|
|||||||
|
|
||||||
onCloseContentWindow(key) {
|
onCloseContentWindow(key) {
|
||||||
key = key || this.tabActived;
|
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);
|
this.panes.splice(i, 1);
|
||||||
|
|
||||||
if (this.panes.length) {
|
if (this.panes.length) {
|
||||||
|
|||||||
Reference in New Issue
Block a user