fix: 修复因在编辑界面点击撤销或重做导致的Tab页布局变化问题

This commit is contained in:
wangjiahao 2024-07-29 11:13:02 +08:00
parent b27d67dd57
commit d3a7696025

View File

@ -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 = () => {