forked from github/dataease
Merge pull request #9872 from dataease/pr@dev-v2@fix_canvas-edit
fix(仪表板): 修复进入仪表板,首次操作未计入画布变更问题
This commit is contained in:
commit
8d11116d54
@ -138,7 +138,7 @@ const canvasInit = (isFistLoad = true) => {
|
||||
}
|
||||
// afterInit
|
||||
dvMainStore.setDataPrepareState(true)
|
||||
if (isMainCanvas(canvasId.value.id) && isFistLoad) {
|
||||
if (isMainCanvas(canvasId.value) && isFistLoad) {
|
||||
snapshotStore.recordSnapshotCache('renderChart')
|
||||
}
|
||||
}, 500)
|
||||
|
@ -137,13 +137,6 @@ const initLocalCanvasData = () => {
|
||||
dvInfo.value.pid = sourcePid
|
||||
setTimeout(() => {
|
||||
snapshotStore.recordSnapshotCache()
|
||||
// 复制时,初始化的保存按钮为激活状态
|
||||
if (opt === 'copy') {
|
||||
// 使用缓存时,初始化的保存按钮为激活状态
|
||||
setTimeout(() => {
|
||||
snapshotStore.recordSnapshotCache('renderChart')
|
||||
}, 1000)
|
||||
}
|
||||
}, 1500)
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user