feat: share badge on social media

This commit is contained in:
Jannat Patel
2024-05-28 12:05:16 +05:30
parent d03dd3d20d
commit 7c077ace95
6 changed files with 162 additions and 22 deletions

View File

@@ -135,6 +135,12 @@ const routes = [
name: 'Notifications',
component: () => import('@/pages/Notifications.vue'),
},
{
path: '/badges/:badgeName/:email',
name: 'Badge',
component: () => import('@/pages/Badge.vue'),
props: true,
},
]
let router = createRouter({
@@ -154,7 +160,8 @@ router.beforeEach(async (to, from, next) => {
isLoggedIn &&
(to.name == 'Lesson' ||
to.name == 'Batch' ||
to.name == 'Notifications')
to.name == 'Notifications' ||
to.name == 'Badge')
) {
await allUsers.reload()
}