🌐 Localize more pages

This commit is contained in:
2024-08-13 17:54:13 +08:00
parent 4e42b44958
commit 223f97038c
7 changed files with 46 additions and 22 deletions

View File

@ -1,7 +1,7 @@
export default defineNuxtRouteMiddleware((to, from) => {
const state = useLoggedInState();
const id = useUserinfo();
if (!state.value) {
if (!id.isLoggedIn) {
return navigateTo(`/auth/sign-in?redirect_uri=${to.fullPath}`)
}
})