Merge pull request #62 from kkwwang/patch-2

Update main-content.vue
This commit is contained in:
daxiongYang 2018-10-30 09:23:31 +08:00 committed by GitHub
commit 6dbf916b02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -88,7 +88,8 @@
if (this.mainTabs.length >= 1) {
// tab
if (tabName === this.mainTabsActiveName) {
this.$router.push({ name: this.mainTabs[this.mainTabs.length - 1].name }, () => {
var tab = this.mainTabs[this.mainTabs.length - 1]
this.$router.push({ name: tab.name, query: tab.query, params: tab.params }, () => {
this.mainTabsActiveName = this.$route.name
})
}