forked from github/dataease
Merge pull request #11212 from dataease/pr@dev-v2@refactor_tab-redo
fix: 修复因在编辑界面点击撤销或重做导致的Tab页布局变化问题
This commit is contained in:
commit
99e990eb5c
@ -134,23 +134,25 @@ const handleMouseDown = e => {
|
||||
}
|
||||
|
||||
const canvasInit = (isFistLoad = true) => {
|
||||
renderState.value = true
|
||||
setTimeout(function () {
|
||||
if (canvasOut.value) {
|
||||
dashboardCanvasSizeInit()
|
||||
nextTick(() => {
|
||||
cyGridster.value.canvasInit() //在适当的时候初始化布局组件
|
||||
cyGridster.value.afterInitOk(function () {
|
||||
renderState.value = false
|
||||
if (canvasActive.value) {
|
||||
renderState.value = true
|
||||
setTimeout(function () {
|
||||
if (canvasOut.value) {
|
||||
dashboardCanvasSizeInit()
|
||||
nextTick(() => {
|
||||
cyGridster.value.canvasInit() //在适当的时候初始化布局组件
|
||||
cyGridster.value.afterInitOk(function () {
|
||||
renderState.value = false
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
// afterInit
|
||||
dvMainStore.setDataPrepareState(true)
|
||||
if (isMainCanvas(canvasId.value) && isFistLoad) {
|
||||
snapshotStore.recordSnapshotCache('renderChart')
|
||||
}
|
||||
}, 500)
|
||||
}
|
||||
// afterInit
|
||||
dvMainStore.setDataPrepareState(true)
|
||||
if (isMainCanvas(canvasId.value) && isFistLoad) {
|
||||
snapshotStore.recordSnapshotCache('renderChart')
|
||||
}
|
||||
}, 500)
|
||||
}
|
||||
}
|
||||
|
||||
const canvasSizeInit = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user