fix(仪表板): 修复首次新建的仪表板不刷新界面直接移动造成内部视图丢失的问题

This commit is contained in:
wangjiahao 2023-03-24 16:57:30 +08:00
parent 6adedae146
commit f84ea68e99

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') {