File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
view/layout/aside/historyComponent Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff 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 :64 px ;
18+ $height-aside-tilte :60 px ;
1919$height-aside-img :30px ;
2020$width-aside-img :30px ;
2121// header
Original file line number Diff line number Diff 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 () {
You can’t perform that action at this time.
0 commit comments