mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-02 06:34:01 +00:00
fix: apply config
This commit is contained in:
parent
22ebade7ac
commit
9dc9dd3672
@ -139,7 +139,19 @@ export const dashboardStore = defineStore({
|
||||
this.entity = type;
|
||||
},
|
||||
setConfigs(param: { [key: string]: unknown }) {
|
||||
const index = this.layout.findIndex((d: LayoutConfig) => d.i === param.i);
|
||||
const actived = this.activedGridItem.split("-");
|
||||
const index = this.layout.findIndex(
|
||||
(d: LayoutConfig) => actived[0] === d.i
|
||||
);
|
||||
|
||||
if (actived.length === 3) {
|
||||
this.layout[index].children[actived[1]].children[actived[2]] = {
|
||||
...this.layout[index],
|
||||
...param,
|
||||
};
|
||||
this.selectedGrid = this.layout[index];
|
||||
return;
|
||||
}
|
||||
this.layout[index] = {
|
||||
...this.layout[index],
|
||||
...param,
|
||||
|
@ -64,7 +64,8 @@ function handleClick(e: any) {
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.ds-main {
|
||||
height: calc(100% - 40px);
|
||||
height: calc(100% - 45px);
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.layout {
|
||||
|
Loading…
Reference in New Issue
Block a user