Merge branch 'dev' of https://git.hanasys.jp/qcast3/onsitesurvey into feature/inquiry
This commit is contained in:
commit
f74c0a6136
@ -29,12 +29,6 @@ export default function EdgeProvider({ children, sessionData }: EdgeProviderProp
|
||||
const { setAlertMsg, setAlertBtn, setAlert, setAlert2, setAlert2BtnYes, setAlert2BtnNo } = usePopupController()
|
||||
const { session, setSession } = useSessionStore()
|
||||
|
||||
if (pathname === '/login') {
|
||||
if (session?.isLoggedIn) {
|
||||
router.push('/')
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 사용자 이벤트 트래킹 처리
|
||||
*
|
||||
@ -72,6 +66,11 @@ export default function EdgeProvider({ children, sessionData }: EdgeProviderProp
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
if (pathname === '/login') {
|
||||
if (session?.isLoggedIn) {
|
||||
router.push('/')
|
||||
}
|
||||
}
|
||||
//alert 함수 변경해서 바인딩
|
||||
window.alert = function (msg, alertBtn = () => setAlert(false)) {
|
||||
alertFunc(msg, alertBtn)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user