mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
update app
This commit is contained in:
1 parent
d924ccaaa9
commit
4ddbb5aede
7 files changed
+2
-2
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -57,7 +57,7 @@ const router = createRouter({
|
||||
routes,
|
||||
})
|
||||
|
||||
router.beforeEach(async (to, from, next) => {
|
||||
router.beforeEach(async (to, _from, next) => {
|
||||
const loggedIn = await isLoggedIn()
|
||||
// Check if the route requires authentication
|
||||
if (to.meta.requiresAuth && !loggedIn) {
|
||||
Reference in new issue
Block a user