fix: bugs
Deploy banu-front / deploy (push) Successful in 1m47s

This commit is contained in:
sajjadtalkhabi
2026-08-18 09:08:45 +03:30
parent e4a0eb463b
commit 81332abdb0
2 changed files with 2 additions and 8 deletions
@@ -2,8 +2,7 @@ import { useAuthStore } from '@/store/auth'
import { useRoute, useRouter } from 'vue-router'
import { MAIN_SITE_URL, ROLE_HOME_ROUTES } from '@/enums'
export const shouldLandOnMainSite = (auth) =>
auth.role !== 'admin' && auth.user?.status === 'approved'
const shouldLandOnMainSite = (auth) => auth.role !== 'admin' && auth.user?.status === 'approved'
export const useRedirectAfterLogin = () => {
const router = useRouter()