fix:fixed view tags bug
This commit is contained in:
@@ -23,7 +23,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
closeViewTags(view, $event) {
|
closeViewTags(view, $event) {
|
||||||
this.$store.dispatch('delVisitedViews', view).then((views) => {
|
this.$store.dispatch('delVisitedViews', view).then((views) => {
|
||||||
if (this.isActive(view.path)) {
|
if (this.isActive(view)) {
|
||||||
const latestView = views.slice(-1)[0]
|
const latestView = views.slice(-1)[0]
|
||||||
if (latestView) {
|
if (latestView) {
|
||||||
this.$router.push(latestView.path)
|
this.$router.push(latestView.path)
|
||||||
|
Reference in New Issue
Block a user