Merge pull request #5497 from dataease/pr@dev@fix_panel-jump

fix(仪表板): 修复默认仪表板未获取源仪表板跳转信息的问题
This commit is contained in:
王嘉豪 2023-06-21 15:25:38 +08:00 committed by GitHub
commit 395478025c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,12 +192,14 @@ export function initPanelData(panelId, useCache = false, callback) {
watermarkOpen: response.data.watermarkOpen,
watermarkInfo: watermarkInfo
})
const targetPanelId = response.data.panelType==='system'?response.data.source:panelId
if(response.data.type==='default')
// 刷新联动信息
getPanelAllLinkageInfo(panelId).then(rsp => {
getPanelAllLinkageInfo(targetPanelId).then(rsp => {
store.commit('setNowPanelTrackInfo', rsp.data)
})
// 刷新跳转信息
queryPanelJumpInfo(panelId).then(rsp => {
queryPanelJumpInfo(targetPanelId).then(rsp => {
store.commit('setNowPanelJumpInfo', rsp.data)
})
} else {