fix:标签选择器去除多余的代码

This commit is contained in:
lyx 2023-06-05 18:06:57 +08:00
parent 84f6bfcb8a
commit 5b932af6c8

View File

@ -12,7 +12,6 @@ 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: {
@ -30,9 +29,6 @@ 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,