mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-25 00:33:00 +08:00
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 { 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,
|
||||
|
Loading…
Reference in New Issue
Block a user