mirror of
https://github.com/iczer/vue-antd-admin.git
synced 2025-05-31 13:19:16 +08:00
修复: 点击菜单栏时控制台报路由重复导航警告bug;
This commit is contained in:
parent
ce3ee754f5
commit
d4d46eeaae
@ -64,8 +64,8 @@ export default {
|
|||||||
this.pageList.push(newRoute)
|
this.pageList.push(newRoute)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'activePage': function (key) {
|
'activePage': function () {
|
||||||
this.$router.push(key)
|
// this.$router.push(key)
|
||||||
},
|
},
|
||||||
'multiPage': function (newVal) {
|
'multiPage': function (newVal) {
|
||||||
if (!newVal) {
|
if (!newVal) {
|
||||||
@ -76,6 +76,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changePage (key) {
|
changePage (key) {
|
||||||
|
this.$router.push(key)
|
||||||
this.activePage = key
|
this.activePage = key
|
||||||
},
|
},
|
||||||
editPage (key, action) {
|
editPage (key, action) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user