Merge pull request #9799 from dataease/pr@dev-v2@fix_tab-switch

fix(仪表板): 修复Tab组件仅切换tab页导致保存按钮高亮问题
This commit is contained in:
王嘉豪 2024-05-23 15:52:45 +08:00 committed by GitHub
commit c7e9f18329
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -138,7 +138,9 @@ const canvasInit = (isFistLoad = true) => {
}
// afterInit
dvMainStore.setDataPrepareState(true)
isFistLoad && snapshotStore.recordSnapshotCache('renderChart')
if (isMainCanvas(canvasId.value.id) && isFistLoad) {
snapshotStore.recordSnapshotCache('renderChart')
}
}, 500)
}