fix:标签选择器去除多余的代码
This commit is contained in:
parent
84f6bfcb8a
commit
5b932af6c8
@ -12,7 +12,6 @@ import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore
|
|||||||
import { useChartInteract } from '@/hooks'
|
import { useChartInteract } from '@/hooks'
|
||||||
import { InteractEventOn } from '@/enums/eventEnum'
|
import { InteractEventOn } from '@/enums/eventEnum'
|
||||||
import { ComponentInteractParamsEnum } from './interact'
|
import { ComponentInteractParamsEnum } from './interact'
|
||||||
import { changeURLStatic } from '@/utils/changeURLParam'
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
chartConfig: {
|
chartConfig: {
|
||||||
@ -30,9 +29,6 @@ const option = shallowReactive({
|
|||||||
const onChange = (v: string) => {
|
const onChange = (v: string) => {
|
||||||
if (v === undefined) return
|
if (v === undefined) return
|
||||||
const selectItem = option.value.dataset.find((item: { label: string; value: any }) => item.label === v)
|
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(
|
useChartInteract(
|
||||||
props.chartConfig,
|
props.chartConfig,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user