fix: update config

This commit is contained in:
Qiuxia Fan
2022-01-12 18:47:04 +08:00
parent 5b95557905
commit a5f8cc2900
10 changed files with 31 additions and 40 deletions

View File

@@ -27,7 +27,7 @@ export const NewControl = {
graph: {},
standard: {},
};
export const ConfigData = {
export const ConfigData: any = {
x: 0,
y: 0,
w: 8,
@@ -41,8 +41,6 @@ export const ConfigData = {
tips: "Tooltip",
},
graph: {
showBackground: true,
barWidth: 30,
type: "Line",
},
standard: {

View File

@@ -144,6 +144,7 @@ export const dashboardStore = defineStore({
...this.layout[index],
...param,
};
this.selectedGrid = this.layout[index];
},
async fetchMetricType(item: string) {
const res: AxiosResponse = await graph