Browse Source

修复了标签页右键点击事件被覆盖的bug

调整了左侧默认高度
main
pixel 3 years ago
parent
commit
a3bda516a0
  1. 4
      web/src/style/basics.scss
  2. 11
      web/src/view/layout/aside/historyComponent/history.vue

4
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

11
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() {

Loading…
Cancel
Save