fix: context menu in the browser tree

This commit is contained in:
Lykin 2024-04-02 18:00:16 +08:00
parent c7c647d728
commit 2e28c1b44b
1 changed files with 1 additions and 1 deletions

View File

@ -496,8 +496,8 @@ const nodeProps = ({ option }) => {
return
}
contextMenuParam.show = false
contextMenuParam.options = markRaw(menuOptions[option.type] || [])
nextTick().then(() => {
contextMenuParam.options = markRaw(menuOptions[option.type] || [])
contextMenuParam.x = e.clientX
contextMenuParam.y = e.clientY
contextMenuParam.show = true