@ -14,6 +14,7 @@
< / r o u t e r - l i n k >
< / s c r o l l - p a n e >
< ul v-show ="visible" :style="{left:left+'px',top:top+'px'}" class="contextmenu" >
< li @click ="refreshSelectedTag(selectedTag)" > {{ $ t ( ' tagsView.refresh ' ) }} < / li >
< li @click ="closeSelectedTag(selectedTag)" > {{ $ t ( ' tagsView.close ' ) }} < / li >
< li @click ="closeOthersTags" > {{ $ t ( ' tagsView.closeOthers ' ) }} < / li >
< li @click ="closeAllTags" > {{ $ t ( ' tagsView.closeAll ' ) }} < / li >
@ -85,6 +86,15 @@ export default {
}
} )
} ,
refreshSelectedTag ( view ) {
this . $store . dispatch ( 'delCachedView' , view ) . then ( ( ) => {
const { fullPath } = view
this . $router . replace ( {
path : '/redirect' + fullPath
} )
} )
} ,
closeSelectedTag ( view ) {
this . $store . dispatch ( 'delView' , view ) . then ( ( { visitedViews } ) => {
if ( this . isActive ( view ) ) {