We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f712d46 commit 5379510Copy full SHA for 5379510
src/views/layout/TabsView.vue
@@ -19,7 +19,12 @@ export default {
19
closeViewTabs(view, $event) {
20
this.$store.dispatch('delVisitedViews', view).then((views) => {
21
if (this.isActive(view.path)) {
22
- this.$router.push(views.pop().path)
+ const latestView = views.slice(-1)[0]
23
+ if (latestView) {
24
+ this.$router.push(latestView.path)
25
+ } else {
26
+ this.$router.push('/')
27
+ }
28
}
29
})
30
$event.preventDefault()
0 commit comments