Skip to content

Commit 57c6ba3

Browse files
author
pixel
committed
修复了标签页右键点击事件被覆盖的bug
调整了左侧默认高度
1 parent fee7165 commit 57c6ba3

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

web/src/style/basics.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ $white-bg:#fff;
88
$el-icon-small:30px;
99
$el-icon-mini:24px;
1010
// aside
11-
$width-aside:220px;
11+
$width-aside:220px;
1212
$width-hideside-aside:54px;
1313
$width-mobile-aside:210px;
1414
$color-aside:rgba(255, 255, 255,.9);
1515
$icon-arrow-size-aside:12px;
1616
$width-submenu-aside:55px;
1717
$bg-aside:#191a23;
18-
$height-aside-tilte:64px;
18+
$height-aside-tilte:60px;
1919
$height-aside-img:30px;
2020
$width-aside-img:30px;
2121
// header

web/src/view/layout/aside/historyComponent/history.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,14 @@ export default {
118118
if (this.historys.length === 1 && this.$route.name === this.defaultRouter) {
119119
return false
120120
}
121-
if (e.srcElement.id) {
121+
let id = ''
122+
if (e.srcElement.nodeName === 'SPAN') {
123+
console.log(e)
124+
id = e.srcElement.offsetParent.id
125+
} else {
126+
id = e.srcElement.id
127+
}
128+
if (id) {
122129
this.contextMenuVisible = true
123130
let width
124131
if (this.isCollapse) {
@@ -131,7 +138,7 @@ export default {
131138
}
132139
this.left = e.clientX - width
133140
this.top = e.clientY + 10
134-
this.rightActive = e.srcElement.id.split('-')[1]
141+
this.rightActive = id.split('-')[1]
135142
}
136143
},
137144
closeAll() {

0 commit comments

Comments
 (0)