From 59b8cde0c5d362cd3b19244389896557382e44d0 Mon Sep 17 00:00:00 2001 From: liyang <1711467488@qq.com> Date: Sat, 4 Aug 2018 07:22:36 +0800 Subject: [PATCH] bug fixed Former-commit-id: a314ca0bb102d56470884422a879a2f41c7da9c6 [formerly a314ca0bb102d56470884422a879a2f41c7da9c6 [formerly a314ca0bb102d56470884422a879a2f41c7da9c6 [formerly a314ca0bb102d56470884422a879a2f41c7da9c6 [formerly 5ae0bf80bb9cd0f4a558974195dc304bacd5a3a9 [formerly b4ac51e3db85610616439094fd081c9246e0e3b2]]]]] Former-commit-id: 7c4df6c4eb4c9abf9489fb8cd6371169cb4078a3 Former-commit-id: 9ea5592e447224e2c621ec93f793173fea228385 Former-commit-id: da1da6c29a0e8d46b5abf73b226c9294a158fe53 [formerly 2373d07b22ace39b1f5ef31007f162235854df1a] Former-commit-id: e60010e505a5df6ede20b711e53318d7738adb31 Former-commit-id: 04765e0c449895310a7d08a988f3ebaffbfde82b Former-commit-id: a5a8a9db2a0dc307612866451c786b1b2a742fc2 Former-commit-id: 612546a5c9f40a5654692c69a7783ee837cd6dff Former-commit-id: 1034a87cb22cd6e3889100d4fa6311b8901408bb --- src/layout/header-aside/components/tabs/index.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/layout/header-aside/components/tabs/index.vue b/src/layout/header-aside/components/tabs/index.vue index 13d1b69b..bfa2ae9e 100644 --- a/src/layout/header-aside/components/tabs/index.vue +++ b/src/layout/header-aside/components/tabs/index.vue @@ -99,6 +99,11 @@ export default { */ handleContextmenu (event) { let target = event.target + // 解决 https://github.com/d2-projects/d2-admin/issues/54 + const attribute = target.getAttribute('aria-controls') + if (attribute === null) { + return + } if (target.className.indexOf('el-tabs__item') > -1 || target.parentNode.className.indexOf('el-tabs__item') > -1) { event.preventDefault() event.stopPropagation()