in src/store/modules/dashboard.ts [241:253]
removeTabItem(item: LayoutConfig, index: number) {
const idx = this.layout.findIndex((d: LayoutConfig) => d.i === item.i);
if (this.selectedGrid) {
for (const item of (this.layout[idx].children || [])[index].children) {
if (this.selectedGrid?.i === item.i) {
this.selectedGrid = null;
}
}
}
if (this.layout[idx].children) {
this.layout[idx].children?.splice(index, 1);
}
},