Commit 83918faf authored by 张伯涛's avatar 张伯涛

修改菜单结构showFather问题

parent eabb927d
...@@ -22,6 +22,8 @@ const permission = { ...@@ -22,6 +22,8 @@ const permission = {
getInfo().then(res => { getInfo().then(res => {
const accessedRoutes = filterAsyncRouter(res.data.menus[0].children) const accessedRoutes = filterAsyncRouter(res.data.menus[0].children)
console.log('进来了', accessedRoutes) console.log('进来了', accessedRoutes)
// 获取菜单结构后把首页的showFather改为false从而达到不显示首页目录的效果
res.data.menus[0].children[0].showFather = 'false'
if (accessedRoutes[0]) { if (accessedRoutes[0]) {
const firstChild = getFirstChild(accessedRoutes[0]) const firstChild = getFirstChild(accessedRoutes[0])
accessedRoutes.push({ path: '*', redirect: '/404', hidden: true }) accessedRoutes.push({ path: '*', redirect: '/404', hidden: true })
......
...@@ -142,7 +142,7 @@ export default { ...@@ -142,7 +142,7 @@ export default {
// this.$router.push({ path: `http://main.court.com${this.redirect || "/"}` }); // this.$router.push({ path: `http://main.court.com${this.redirect || "/"}` });
this.loading = false this.loading = false
// this.$router.push('/welcome') // this.$router.push('/welcome')
this.$router.push('/homePage/index') this.$router.push('/Home')
}) })
.catch(() => { .catch(() => {
this.loading = false this.loading = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment