fix(editor): 组件树右键菜单添加组件无效

This commit is contained in:
roymondchen 2022-05-31 21:09:12 +08:00 committed by jia000
parent 663d7cee9f
commit a320823992

View File

@ -49,7 +49,7 @@ export default defineComponent({
onMounted(() => {
globalThis.addEventListener(
'mousedown',
'mouseup',
(e: MouseEvent) => {
if (!visible.value || (e.target && menu.value?.contains(e.target as HTMLElement))) {
return;