diff --git a/src/packages/components/Informations/Inputs/InputsTab/config.vue b/src/packages/components/Informations/Inputs/InputsTab/config.vue index 39d9cad5..c6e8c7c9 100644 --- a/src/packages/components/Informations/Inputs/InputsTab/config.vue +++ b/src/packages/components/Informations/Inputs/InputsTab/config.vue @@ -1,8 +1,11 @@ diff --git a/src/packages/components/Informations/Inputs/InputsTab/index.vue b/src/packages/components/Informations/Inputs/InputsTab/index.vue index d75bde97..90107ee0 100644 --- a/src/packages/components/Informations/Inputs/InputsTab/index.vue +++ b/src/packages/components/Informations/Inputs/InputsTab/index.vue @@ -1,5 +1,5 @@ @@ -12,6 +12,7 @@ import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore import { useChartInteract } from '@/hooks' import { InteractEventOn } from '@/enums/eventEnum' import { ComponentInteractParamsEnum } from './interact' +import { changeURLStatic } from '@/utils/changeURLParam' const props = defineProps({ chartConfig: { @@ -29,6 +30,9 @@ const option = shallowReactive({ const onChange = (v: string) => { if (v === undefined) return const selectItem = option.value.dataset.find((item: { label: string; value: any }) => item.label === v) + const { chartConfig } = props + const key = chartConfig.chartConfig.title || chartConfig.id; + changeURLStatic(key, selectItem.value) // 存储到联动数据 useChartInteract( props.chartConfig,