baigl #261

Merged
baigl merged 14 commits from baigl into main 2024-09-24 16:34:39 +08:00
1 changed files with 13 additions and 0 deletions
Showing only changes of commit e70d6b0539 - Show all commits

View File

@ -360,6 +360,19 @@ const handleNodeClick = (data, node) => {
localStorage.setItem('defaultExpandedKeys', nodeData.parentNode ? JSON.stringify([parentNode.id]) : JSON.stringify([data.id]))
localStorage.setItem('currentNodeId', JSON.stringify(data.id))
//#region
let levelSecondId = curData.node.id
let levelFirstId
if (curData.node.parentNode) {
levelFirstId = curData.node.parentNode.id
} else {
levelFirstId = curData.node.id
levelSecondId = ''
}
console.log('levelFirstId---', levelFirstId)
console.log('levelSecondId---', levelSecondId)
localStorage.setItem('unitId', JSON.stringify({ levelFirstId, levelSecondId}))
//#endregion
emit('nodeClick', curData)