4
0
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:
iczer 2020-06-18 16:06:50 +08:00
parent ce3ee754f5
commit d4d46eeaae

View File

@ -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) {