refine
This commit is contained in:
parent
2fe46b1a52
commit
532a7f5a5e
|
@ -168,9 +168,14 @@ export default {
|
||||||
if (latestView) {
|
if (latestView) {
|
||||||
this.$router.push(latestView)
|
this.$router.push(latestView)
|
||||||
} else {
|
} else {
|
||||||
// You can set another route
|
// now the default is to redirect to the home page if there is no tags-view,
|
||||||
if (view.name === 'Dashboard') this.$router.replace({ path: '/redirect' + view.fullPath })
|
// you can adjust it according to your needs.
|
||||||
else this.$router.push('/')
|
if (view.name === 'Dashboard') {
|
||||||
|
// to reload home page
|
||||||
|
this.$router.replace({ path: '/redirect' + view.fullPath })
|
||||||
|
} else {
|
||||||
|
this.$router.push('/')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
openMenu(tag, e) {
|
openMenu(tag, e) {
|
||||||
|
|
Loading…
Reference in New Issue