update app

This commit is contained in:
Chen, Tai-Lin committed 2024-03-04 23:35:05 +08:00
1 parent d924ccaaa9
commit 4ddbb5aede
7 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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.
View File
File renamed without changes.
+1 -1
View File
@@ -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.