move to login

This commit is contained in:
hamid zarghami
2024-12-24 09:49:58 +03:30
parent b765671323
commit 67135204ab
+2
View File
@@ -8,6 +8,7 @@ import FaJson from './langs/fa.json'
import { IApiErrorRepsonse } from './types/error.types'
import MainRouter from './router/Main'
import AuthRouter from './router/Auth'
import { Pages } from './config/Pages'
i18next.init({
interpolation: { escapeValue: false },
@@ -45,6 +46,7 @@ const App: FC = () => {
setIsLogin('isLogin')
} else {
setIsLogin('isNotLogin')
window.location.href = Pages.auth.login
}
}, [])