fixed bug
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<span class="el-icon-close" @click.prevent.stop="closeSelectedTag(tag)"/>
|
||||
</router-link>
|
||||
</scroll-pane>
|
||||
<ul v-show="visible" :style="{left:left+'px',top:top+'px'}" class="contextmenu">
|
||||
<ul v-show="visible" :style="{left:tagLeft+'px',top:tagTop+'px','z-index': 99}" class="contextmenu">
|
||||
<li @click="refreshSelectedTag(selectedTag)">重新加载</li>
|
||||
<li @click="closeSelectedTag(selectedTag)">关闭当前</li>
|
||||
<li @click="closeOthersTags">关闭其他</li>
|
||||
@@ -25,8 +25,8 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
top: 0,
|
||||
left: 0,
|
||||
tagTop: 0,
|
||||
tagLeft: 0,
|
||||
selectedTag: {}
|
||||
}
|
||||
},
|
||||
@@ -111,9 +111,9 @@ export default {
|
||||
const status = Cookies.get('sidebarStatus')
|
||||
this.visible = true
|
||||
this.selectedTag = tag
|
||||
this.left = e.clientX
|
||||
if (status === '0') this.left = parseInt(e.clientX) - 200
|
||||
this.top = e.clientY
|
||||
this.tagLeft = e.clientX
|
||||
if (status === '0') this.tagLeft = parseInt(e.clientX) - 200
|
||||
this.tagTop = e.clientY
|
||||
},
|
||||
closeMenu() {
|
||||
this.visible = false
|
||||
|
||||
Reference in New Issue
Block a user