diff --git a/src/locales/lang/zh.ts b/src/locales/lang/zh.ts index c607407a..a043ba23 100644 --- a/src/locales/lang/zh.ts +++ b/src/locales/lang/zh.ts @@ -20,7 +20,7 @@ const msg = { traces: "跟踪", metrics: "指标", serviceMesh: "服务网格", - infrastructure: "基础结构", + infrastructure: "基础设施", virtualMachine: "虚拟机", dashboardNew: "新建仪表板", dashboardHome: "仪表盘首页", @@ -112,7 +112,7 @@ const msg = { showGroup: "显示分组", noWidget: "请添加组件", rename: "重命名", - selfObservability: "自观性", + selfObservability: "自观测性", satellite: "Satellite", skyWalkingServer: "SkyWalking服务", functions: "Functions", diff --git a/src/views/dashboard/configuration/Text.vue b/src/views/dashboard/configuration/Text.vue index 722dfd3a..40b93de2 100644 --- a/src/views/dashboard/configuration/Text.vue +++ b/src/views/dashboard/configuration/Text.vue @@ -92,7 +92,7 @@ const { t } = useI18n(); const dashboardStore = useDashboardStore(); const originConfig = dashboardStore.selectedGrid; const graph = originConfig.graph || {}; -const url = ref(originConfig.graph.url || ""); +const url = ref(graph.url || ""); const backgroundColor = ref(graph.backgroundColor || "green"); const fontColor = ref(graph.fontColor || "white"); const content = ref(graph.content || ""); diff --git a/src/views/dashboard/configuration/widget/graph-styles/Area.vue b/src/views/dashboard/configuration/widget/graph-styles/Area.vue index eb09fac9..9c4b3e0b 100644 --- a/src/views/dashboard/configuration/widget/graph-styles/Area.vue +++ b/src/views/dashboard/configuration/widget/graph-styles/Area.vue @@ -34,16 +34,16 @@ import { useDashboardStore } from "@/store/modules/dashboard"; const { t } = useI18n(); const dashboardStore = useDashboardStore(); -const { selectedGrid } = dashboardStore; +const graph = dashboardStore.selectedGrid.graph || {}; -const opacity = ref(selectedGrid.graph.opacity); +const opacity = ref(graph.opacity); function updateConfig(param: { [key: string]: unknown }) { const graph = { - ...selectedGrid.graph, + ...dashboardStore.selectedGrid.graph, ...param, }; - dashboardStore.selectWidget({ ...selectedGrid, graph }); + dashboardStore.selectWidget({ ...dashboardStore.selectedGrid, graph }); }