修复: 点击菜单栏时控制台报路由重复导航警告bug;

master
iczer 5 years ago
parent ce3ee754f5
commit d4d46eeaae
  1. 5
      src/layouts/MenuView.vue

@ -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…
Cancel
Save