src/layout/components/PageMenu.vue
@@ -31,8 +31,12 @@ name: '新建工单', }, { id: '1-2', url: 'workList', url: 'pending', name: '待处理', }, { id: '1-3', url: 'processed', name: '已处理', }, ] },], @@ -41,6 +45,7 @@ }, methods: { select(data, parent) { console.log(this.$router) this.id = data.id; if (data.url) { this.$router.push({