提交 c32fce75 authored 作者: wangjiahao's avatar wangjiahao

fix: 历史仪表板的公共链接打不开的问题

上级 734aa62a
...@@ -94,7 +94,7 @@ export default { ...@@ -94,7 +94,7 @@ export default {
width: '100%', width: '100%',
height: '100%' height: '100%'
} }
if (this.config.commonBackground.enable) { if (this.config.commonBackground && this.config.commonBackground.enable) {
if (this.config.commonBackground.backgroundType === 'innerImage') { if (this.config.commonBackground.backgroundType === 'innerImage') {
style['background'] = `url(${this.config.commonBackground.innerImage}) no-repeat` style['background'] = `url(${this.config.commonBackground.innerImage}) no-repeat`
} else if (this.config.commonBackground.backgroundType === 'outerImage') { } else if (this.config.commonBackground.backgroundType === 'outerImage') {
......
...@@ -10,6 +10,7 @@ import { uuid } from 'vue-uuid' ...@@ -10,6 +10,7 @@ import { uuid } from 'vue-uuid'
import Preview from '@/components/canvas/components/Editor/Preview' import Preview from '@/components/canvas/components/Editor/Preview'
import { getPanelAllLinkageInfo } from '@/api/panel/linkage' import { getPanelAllLinkageInfo } from '@/api/panel/linkage'
import { queryPanelJumpInfo, queryTargetPanelJumpInfo } from '@/api/panel/linkJump' import { queryPanelJumpInfo, queryTargetPanelJumpInfo } from '@/api/panel/linkJump'
import { panelInit } from '@/components/canvas/utils/utils'
export default { export default {
name: 'LinkView', name: 'LinkView',
...@@ -40,14 +41,14 @@ export default { ...@@ -40,14 +41,14 @@ export default {
id: res.data.id, id: res.data.id,
name: res.data.name name: res.data.name
}) })
panelInit(JSON.parse(res.data.panelData), JSON.parse(res.data.panelStyle))
// 设置浏览器title为当前仪表板名称 // 设置浏览器title为当前仪表板名称
document.title = res.data.name document.title = res.data.name
// 刷新联动信息 // 刷新联动信息
getPanelAllLinkageInfo(this.resourceId).then(rsp => { getPanelAllLinkageInfo(this.resourceId).then(rsp => {
this.$store.commit('setNowPanelTrackInfo', rsp.data) this.$store.commit('setNowPanelTrackInfo', rsp.data)
}) })
this.$store.commit('setComponentData', this.resetID(JSON.parse(res.data.panelData)))
this.$store.commit('setCanvasStyle', JSON.parse(res.data.panelStyle))
// 刷新跳转信息 // 刷新跳转信息
queryPanelJumpInfo(this.resourceId).then(rsp => { queryPanelJumpInfo(this.resourceId).then(rsp => {
this.$store.commit('setNowPanelJumpInfo', rsp.data) this.$store.commit('setNowPanelJumpInfo', rsp.data)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论