Merge pull request #4887 from dataease/pr@dev@fix_panel-view-lose

fix(仪表板): 修复首次新建的仪表板不刷新界面直接移动造成内部视图丢失的问题
This commit is contained in:
王嘉豪 2023-03-24 17:19:17 +08:00 committed by GitHub
commit 4b120c7339
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -373,7 +373,12 @@ export function insertBatchTreeNode(nodeInfoArray, tree) {
}
}
export function updateCacheTree(opt, treeName, nodeInfo, tree) {
export function updateCacheTree(opt, treeName, nodeInfoFull, tree) {
const nodeInfo = {
...nodeInfoFull,
panelData: null,
panelStyle: null
}
if (opt === 'new' || opt === 'copy') {
insertTreeNode(nodeInfo, tree)
} else if (opt === 'move') {