diff --git a/packages/wechat/AppAddressBook/components/List.vue b/packages/wechat/AppAddressBook/components/List.vue index e82ec6fc..4dc2057a 100644 --- a/packages/wechat/AppAddressBook/components/List.vue +++ b/packages/wechat/AppAddressBook/components/List.vue @@ -299,9 +299,12 @@ export default { nodeContextmenu(e, node) { this.isShowMenu = true + let y = e.y + 6 + if (y + 202 > document.body.clientHeight) { + y = y - 202 + } this.menuInfo = { - x: e.x + 16, - y: e.y + 6, + x: e.x + 16, y, node } },