fix: 编辑页面下,新添加图表后,设置图表导致联动、跳转,导致原有图表的联动、跳转标识丢失

This commit is contained in:
ulleo 2023-11-21 16:15:34 +08:00
parent 36e4a28b47
commit 7f113dd609

View File

@ -18,9 +18,8 @@ import { storeToRefs } from 'pinia'
import { BASE_VIEW_CONFIG } from '../util/chart'
import { cloneDeep, defaultsDeep } from 'lodash-es'
const dvMainStore = dvMainStoreWithOut()
const { dvInfo } = storeToRefs(dvMainStore)
const { nowPanelTrackInfo, nowPanelJumpInfo } = storeToRefs(dvMainStore)
const { nowPanelTrackInfo, nowPanelJumpInfo, dvInfo } = storeToRefs(dvMainStore)
const { t } = useI18n()
const linkJumpRef = ref(null)
@ -154,7 +153,7 @@ const noSenior = computed(() => {
const linkJumpActiveChange = () => {
//
const params = {
sourceDvId: chart.value.sceneId,
sourceDvId: dvInfo.value.id,
sourceViewId: chart.value.id,
activeStatus: chart.value.jumpActive
}
@ -164,7 +163,7 @@ const linkJumpActiveChange = () => {
}
const linkageActiveChange = () => {
const params = {
dvId: chart.value.sceneId,
dvId: dvInfo.value.id,
sourceViewId: chart.value.id,
activeStatus: chart.value.linkageActive
}