mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-19 03:17:35 +00:00
feat: update config
This commit is contained in:
parent
7f2917bec5
commit
449b7dbd4d
@ -50,12 +50,13 @@ limitations under the License. -->
|
|||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { useDashboardStore } from "@/store/modules/dashboard";
|
import { useDashboardStore } from "@/store/modules/dashboard";
|
||||||
import Legend from "./components/Legend.vue";
|
import Legend from "./components/Legend.vue";
|
||||||
|
import { isDef } from "@/utils/is";
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const dashboardStore = useDashboardStore();
|
const dashboardStore = useDashboardStore();
|
||||||
const graph = computed(() => dashboardStore.selectedGrid.graph || {});
|
const graph = computed(() => dashboardStore.selectedGrid.graph || {});
|
||||||
const smooth = ref(graph.value.smooth);
|
const smooth = ref(graph.value.smooth);
|
||||||
const showSymbol = ref(graph.value.showSymbol);
|
const showSymbol = ref(isDef(graph.value.showSymbol) ? graph.value.showSymbol : true);
|
||||||
const step = ref(graph.value.step);
|
const step = ref(graph.value.step);
|
||||||
|
|
||||||
function updateConfig(param: { [key: string]: unknown }) {
|
function updateConfig(param: { [key: string]: unknown }) {
|
||||||
|
Loading…
Reference in New Issue
Block a user