layout/h5Page/CNavBar.vue
@@ -69,7 +69,7 @@ }, 500); }, outCloseMenu(evt) { (() => { setTimeout(() => { // 未打开时,忽略 if (!this.dropShow) { return; @@ -79,12 +79,16 @@ return; } // 点击了菜单项,忽略 if (evt.target.className.indexOf('c-nav-bar-drop-item') >= 0) { const className = evt.target.className; if ( className.indexOf('c-nav-bar-drop-item') >= 0 || className.indexOf('at-nav-bar__container') >= 0 ) { return; } // 执行关闭 this.dropShow = false; })(); }, 0); }, }, mounted() {