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
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user