From 42d0ba166a831e4069e7d926d52e8544b1486ae9 Mon Sep 17 00:00:00 2001 From: kimi <kimi42345@gmail.com> Date: 星期二, 21 一月 2020 13:49:32 +0800 Subject: [PATCH] Merge branch 'master' of http://highdatas.com:9000/r/~kimi/srs --- src/views/Home.vue | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index 625d1eb..bf907bf 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -4,9 +4,9 @@ <el-aside width="200px" style="background-color: rgb(238, 241, 246); "> <div style="width: 100%;height: 60px;"></div> <el-menu - :default-openeds="defaultActive" class="el-menu-vertical-demo" :unique-opened="false" + :default-active="defaultActive" @select ="menuSelect" @open ="menuSelect" @close ="menuSelect" @@ -63,16 +63,16 @@ return { breadcrumbItems:[], - defaultActive: [], + defaultActive: "", navList:[ { title:"棣栭〉", path:"mine",children:[] }, { title:"椤圭洰绠$悊", path:"0_1",children:[ - {title:"淇℃伅骞垮満", path:"project2",children:[]}, - {title:"椤圭洰鎬昏", path:"Overview",children:[]}, - {title:"椤圭洰鍒嗘瀽", path:"project3",children:[]}, + {title:"淇℃伅骞垮満", path:"square",children:[]}, + {title:"椤圭洰鎬昏", path:"list",children:[]}, + {title:"椤圭洰鍒嗘瀽", path:"Overview",children:[]}, {title:"褰掓。鎶ュ憡", path:"project4",children:[]}, ] }, @@ -89,6 +89,10 @@ if (!userId_) { this.$router.push('/login'); } + else { + this.defaultActive = "mine"; + this.$router.push('/mine'); + } }, methods: { -- Gitblit v1.8.0