diff --git a/17th Website/src/components/ProfilePage/profileSubNav.vue b/17th Website/src/components/ProfilePage/profileSubNav.vue index a716e4e..0aac271 100644 --- a/17th Website/src/components/ProfilePage/profileSubNav.vue +++ b/17th Website/src/components/ProfilePage/profileSubNav.vue @@ -12,6 +12,11 @@ export default { setup(props) { console.log(props.link); }, + computed: { + currentRouteName() { + return this.$route.name; + } + } } diff --git a/17th Website/src/router.js b/17th Website/src/router.js index f2b486c..66d637a 100644 --- a/17th Website/src/router.js +++ b/17th Website/src/router.js @@ -10,22 +10,22 @@ export default createRouter({ component: () => import('./views/home.vue'), }, { - path: '/profile', + path: '/profile/:name', name: 'profile', component: () => import('./components/ProfilePage/profile.vue'), children: [ { - path: '/home', + path: 'home', name: 'personnel', component: () => import('./components/ProfilePage/personnel.vue') }, { - path: '/activityHistory', + path: 'activityHistory', name: 'activityHistory', component: () => import('./components/ProfilePage/activityHistory.vue') }, { - path: '/shadowbox', + path: 'shadowbox', name: 'shadowbox', component: () => import('./components/ProfilePage/shadowbox.vue') } diff --git a/17th Website/src/views/users.vue b/17th Website/src/views/users.vue index 388bce8..5cbf56d 100644 --- a/17th Website/src/views/users.vue +++ b/17th Website/src/views/users.vue @@ -72,7 +72,7 @@ export default { newTable = newTable.filter(this.filterByUnit); newTable = newTable.filter(this.filterByName); return newTable; - } + }, } } @@ -154,7 +154,8 @@ export default { - + {{ item.member_name }} {{ item.status }} {{ item.rank }}