xsh 3 年之前
父节点
当前提交
fb96c4f844
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/components/SideMenu.vue

+ 3 - 1
src/components/SideMenu.vue

@@ -141,11 +141,13 @@ export default {
       })
     },
     jump(item) {
-      console.log(item);
       this.activeName = item.title;
       if(item.children.length > 0 && item.url !== "dashboard") {
         this.isShow = true;
         this.selectItem = item;
+        this.$router.push({
+          path: '/' + item.children[0].url
+        })
       } else {
         this.isShow = false;
         this.$router.push({