1
0
mirror of https://github.com/tiny-craft/tiny-rdm.git synced 2025-05-07 00:58:04 +08:00

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

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