diff --git a/frontend/src/components/canvas/components/Editor/PreviewEject.vue b/frontend/src/components/canvas/components/Editor/PreviewEject.vue index b290d689bd..d79ca08a0e 100644 --- a/frontend/src/components/canvas/components/Editor/PreviewEject.vue +++ b/frontend/src/components/canvas/components/Editor/PreviewEject.vue @@ -7,6 +7,8 @@ import Preview from './Preview' import { uuid } from 'vue-uuid' import { findOne } from '@/api/panel/panel' +import { getPanelAllLinkageInfo } from '@/api/panel/linkage' + export default { components: { Preview }, @@ -24,6 +26,10 @@ export default { id: response.data.id, name: response.data.name } + // 刷新联动信息 + getPanelAllLinkageInfo(this.panelId).then(rsp => { + this.$store.commit('setNowPanelTrackInfo', rsp.data) + }) this.$store.dispatch('panel/setPanelInfo', data) }) }, diff --git a/frontend/src/views/link/view/index.vue b/frontend/src/views/link/view/index.vue index c92b5fc478..b2b1a1cbf4 100644 --- a/frontend/src/views/link/view/index.vue +++ b/frontend/src/views/link/view/index.vue @@ -8,6 +8,8 @@ import { loadResource } from '@/api/link' import { uuid } from 'vue-uuid' import Preview from '@/components/canvas/components/Editor/Preview' +import { getPanelAllLinkageInfo } from '@/api/panel/linkage' + export default { name: 'LinkView', components: { Preview }, @@ -29,6 +31,10 @@ export default { methods: { setPanelInfo() { loadResource(this.resourceId).then(res => { + // 刷新联动信息 + getPanelAllLinkageInfo(this.resourceId).then(rsp => { + this.$store.commit('setNowPanelTrackInfo', rsp.data) + }) this.$store.commit('setComponentData', this.resetID(JSON.parse(res.data.panelData))) // this.$store.commit('setComponentData', JSON.parse(res.data.panelData)) this.$store.commit('setCanvasStyle', JSON.parse(res.data.panelStyle))