refresh
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
</router-link>
|
||||
</scroll-pane>
|
||||
<ul v-show="visible" :style="{left:left+'px',top:top+'px'}" class="contextmenu">
|
||||
<li @click="refreshSelectedTag()">刷新当前</li>
|
||||
<li @click="closeSelectedTag(selectedTag)">关闭当前</li>
|
||||
<li @click="closeOthersTags">关闭其他</li>
|
||||
<li @click="closeAllTags">关闭全部</li>
|
||||
@@ -20,6 +21,7 @@ import Cookies from 'js-cookie'
|
||||
|
||||
export default {
|
||||
components: { ScrollPane },
|
||||
inject: ['reload'],
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
@@ -78,6 +80,11 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
refreshSelectedTag() {
|
||||
this.$nextTick(() => {
|
||||
this.reload() // 2019.6.2 cjn
|
||||
})
|
||||
},
|
||||
closeSelectedTag(view) {
|
||||
this.$store.dispatch('delVisitedViews', view).then((views) => {
|
||||
if (this.isActive(view)) {
|
||||
|
||||
Reference in New Issue
Block a user