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

This commit is contained in:
wangjiahao 2022-02-24 18:14:32 +08:00
parent 734aa62a31
commit c32fce753d
2 changed files with 4 additions and 3 deletions

View File

@ -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') {

View File

@ -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)