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({