perf: 优化联动交互

This commit is contained in:
奔跑的面条
2023-03-11 22:03:35 +08:00
parent 4edc639cf8
commit b2594d2f66
4 changed files with 78 additions and 52 deletions
+2 -1
View File
@@ -21,7 +21,8 @@ export const useChartInteract = (
if (fnOnEvent.length === 0) return
fnOnEvent.forEach(item => {
const index = chartEditStore.fetchTargetIndex(item.interactComponents)
const index = chartEditStore.fetchTargetIndex(item.interactComponentId)
if (index === -1) return
const { Params, Header } = toRefs(chartEditStore.componentList[index].request.requestParams)
Object.keys(item.interactFn).forEach(key => {
if (Params.value[key]) {