forked from github/dataease
fix: 历史仪表板的公共链接打不开的问题
This commit is contained in:
parent
734aa62a31
commit
c32fce753d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user