mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-15 12:49:17 +00:00
fix: get selectedGrid
This commit is contained in:
@@ -25,7 +25,6 @@ import { NewControl } from "../data";
|
||||
import { Duration } from "@/types/app";
|
||||
import axios, { AxiosResponse } from "axios";
|
||||
import { cancelToken } from "@/utils/cancelToken";
|
||||
import { Instance } from "@/types/selector";
|
||||
interface DashboardState {
|
||||
showConfig: boolean;
|
||||
layout: LayoutConfig[];
|
||||
@@ -137,8 +136,8 @@ export const dashboardStore = defineStore({
|
||||
setConfigPanel(show: boolean) {
|
||||
this.showConfig = show;
|
||||
},
|
||||
selectWidget(widget: Nullable<LayoutConfig>) {
|
||||
this.selectedGrid = widget;
|
||||
selectWidget(item: Nullable<LayoutConfig>) {
|
||||
this.selectedGrid = item;
|
||||
},
|
||||
setLayer(id: string) {
|
||||
this.layerId = id;
|
||||
|
Reference in New Issue
Block a user