forked from github/dataease
Merge pull request #4923 from dataease/pr@dev@fix_dataset-menu
fix(数据集): 修复数据集菜单树操作显示不同步问题
This commit is contained in:
commit
647896e8d5
@ -374,10 +374,15 @@ export function insertBatchTreeNode(nodeInfoArray, tree) {
|
||||
}
|
||||
|
||||
export function updateCacheTree(opt, treeName, nodeInfoFull, tree) {
|
||||
const nodeInfo = {
|
||||
...nodeInfoFull,
|
||||
panelData: null,
|
||||
panelStyle: null
|
||||
const nodeInfo = deepCopy(nodeInfoFull)
|
||||
if( nodeInfo instanceof Array){
|
||||
nodeInfo.forEach(item=>{
|
||||
delete item.panelData
|
||||
delete item.panelStyle
|
||||
})
|
||||
}else{
|
||||
delete nodeInfo.panelData
|
||||
delete nodeInfo.panelStyle
|
||||
}
|
||||
if (opt === 'new' || opt === 'copy') {
|
||||
insertTreeNode(nodeInfo, tree)
|
||||
|
Loading…
Reference in New Issue
Block a user