From a3bda516a08f26d8ca683d662ade6b93757c32aa Mon Sep 17 00:00:00 2001 From: pixel <303176530@qq.com> Date: Thu, 1 Jul 2021 18:06:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E9=A1=B5=E5=8F=B3=E9=94=AE=E7=82=B9=E5=87=BB=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E8=A2=AB=E8=A6=86=E7=9B=96=E7=9A=84bug=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E4=BA=86=E5=B7=A6=E4=BE=A7=E9=BB=98=E8=AE=A4=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/style/basics.scss | 4 ++-- .../view/layout/aside/historyComponent/history.vue | 11 +++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/web/src/style/basics.scss b/web/src/style/basics.scss index 767a99e5..cfa018b6 100644 --- a/web/src/style/basics.scss +++ b/web/src/style/basics.scss @@ -8,14 +8,14 @@ $white-bg:#fff; $el-icon-small:30px; $el-icon-mini:24px; // aside -$width-aside:220px; +$width-aside:220px; $width-hideside-aside:54px; $width-mobile-aside:210px; $color-aside:rgba(255, 255, 255,.9); $icon-arrow-size-aside:12px; $width-submenu-aside:55px; $bg-aside:#191a23; -$height-aside-tilte:64px; +$height-aside-tilte:60px; $height-aside-img:30px; $width-aside-img:30px; // header diff --git a/web/src/view/layout/aside/historyComponent/history.vue b/web/src/view/layout/aside/historyComponent/history.vue index 8568b67d..ec645799 100644 --- a/web/src/view/layout/aside/historyComponent/history.vue +++ b/web/src/view/layout/aside/historyComponent/history.vue @@ -118,7 +118,14 @@ export default { if (this.historys.length === 1 && this.$route.name === this.defaultRouter) { return false } - if (e.srcElement.id) { + let id = '' + if (e.srcElement.nodeName === 'SPAN') { + console.log(e) + id = e.srcElement.offsetParent.id + } else { + id = e.srcElement.id + } + if (id) { this.contextMenuVisible = true let width if (this.isCollapse) { @@ -131,7 +138,7 @@ export default { } this.left = e.clientX - width this.top = e.clientY + 10 - this.rightActive = e.srcElement.id.split('-')[1] + this.rightActive = id.split('-')[1] } }, closeAll() {