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

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

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