diff --git a/src/router/index.js b/src/router/index.js index 52b6293..ec7746b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -24,6 +24,11 @@ const routes = [ name: 'Mobile', component: () => import(/* webpackChunkName: "about" */ '../views/mobile/index') }, + { + path: '/mobile/:secondId', + name: 'Mobile', + component: () => import(/* webpackChunkName: "about" */ '../views/mobile/index') + }, { path: '/ts', name: 'TeachingStaff', diff --git a/src/utils/sist.js b/src/utils/sist.js index a076f4a..618fcd0 100644 --- a/src/utils/sist.js +++ b/src/utils/sist.js @@ -9,7 +9,7 @@ export function getParentNode(id){ let menuList = JSON.parse(sessionStorage.getItem("menu")); for (let menu of menuList) { for (let child of menu.children) { - if (id == item.encodeId){ + if (id == child.encodeId){ menu.children=[] child.children=[] return { diff --git a/src/views/content/components/list.vue b/src/views/content/components/list.vue index d8fb790..6587740 100644 --- a/src/views/content/components/list.vue +++ b/src/views/content/components/list.vue @@ -1,6 +1,20 @@