|
@@ -153,15 +153,17 @@ export default {
|
|
},
|
|
},
|
|
refreshSelectedTag(view) {
|
|
refreshSelectedTag(view) {
|
|
this.$store.dispatch('tagsView/delCachedView', view).then(() => {
|
|
this.$store.dispatch('tagsView/delCachedView', view).then(() => {
|
|
- const { fullPath } = view
|
|
|
|
|
|
+ // const { fullPath } = view
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$router.replace({
|
|
this.$router.replace({
|
|
- path: '/redirect' + fullPath
|
|
|
|
|
|
+ // path: '/redirect' + fullPath
|
|
|
|
+ path: '/index'
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
closeSelectedTag(view) {
|
|
closeSelectedTag(view) {
|
|
|
|
+ this.$store.state.tagsView.visitedViews=[];
|
|
this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => {
|
|
this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => {
|
|
if (this.isActive(view)) {
|
|
if (this.isActive(view)) {
|
|
this.toLastView(visitedViews, view)
|
|
this.toLastView(visitedViews, view)
|