mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
update app
This commit is contained in:
1 parent
d924ccaaa9
commit
4ddbb5aede
7 files changed
+2
-2
No files matched your search
+1
-1
@@ -8,6 +8,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<script type="module" src="/src/main.js"></script>
|
<script type="module" src="/src/main.ts"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -57,7 +57,7 @@ const router = createRouter({
|
|||||||
routes,
|
routes,
|
||||||
})
|
})
|
||||||
|
|
||||||
router.beforeEach(async (to, from, next) => {
|
router.beforeEach(async (to, _from, next) => {
|
||||||
const loggedIn = await isLoggedIn()
|
const loggedIn = await isLoggedIn()
|
||||||
// Check if the route requires authentication
|
// Check if the route requires authentication
|
||||||
if (to.meta.requiresAuth && !loggedIn) {
|
if (to.meta.requiresAuth && !loggedIn) {
|
||||||
File renamed without changes.
Reference in new issue
Block a user