mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-19 16:37:36 +00:00
update layout
This commit is contained in:
parent
a526a4bb28
commit
f0df3f2944
@ -217,12 +217,10 @@ export const dashboardStore = defineStore({
|
|||||||
}
|
}
|
||||||
if (actived.length === 3) {
|
if (actived.length === 3) {
|
||||||
const tabIndex = Number(actived[1]);
|
const tabIndex = Number(actived[1]);
|
||||||
const itemIndex = this.layout[index].children[
|
this.currentTabItems = this.currentTabItems.filter(
|
||||||
tabIndex
|
(d: LayoutConfig) => actived[2] !== d.i
|
||||||
].children.findIndex((d: LayoutConfig) => actived[2] === d.i);
|
);
|
||||||
|
this.layout[index].children[tabIndex].children = this.currentTabItems;
|
||||||
this.layout[index].children[tabIndex].children.splice(itemIndex, 1);
|
|
||||||
this.setCurrentTabItems(this.layout[index].children[tabIndex].children);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.layout = this.layout.filter((d: LayoutConfig) => d.i !== item.i);
|
this.layout = this.layout.filter((d: LayoutConfig) => d.i !== item.i);
|
||||||
@ -260,7 +258,6 @@ export const dashboardStore = defineStore({
|
|||||||
const index = this.layout.findIndex(
|
const index = this.layout.findIndex(
|
||||||
(d: LayoutConfig) => actived[0] === d.i
|
(d: LayoutConfig) => actived[0] === d.i
|
||||||
);
|
);
|
||||||
|
|
||||||
if (actived.length === 3) {
|
if (actived.length === 3) {
|
||||||
const tabIndex = Number(actived[1]);
|
const tabIndex = Number(actived[1]);
|
||||||
const itemIndex = this.layout[index].children[
|
const itemIndex = this.layout[index].children[
|
||||||
|
Loading…
Reference in New Issue
Block a user