Commit 074faa4b authored by JzoNg's avatar JzoNg

fix: redirection after sign in

parent 84804a63
......@@ -33,7 +33,9 @@ const ActivateForm = () => {
token,
},
}
const { data: checkRes, mutate: recheck } = useSWR(checkParams, invitationCheck)
const { data: checkRes, mutate: recheck } = useSWR(checkParams, invitationCheck, {
revalidateOnFocus: false,
})
const [name, setName] = useState('')
const [password, setPassword] = useState('')
......
'use client'
import React, { useCallback, useEffect, useState } from 'react'
// import copy from 'copy-to-clipboard'
import { t } from 'i18next'
import s from './index.module.css'
import Tooltip from '@/app/components/base/tooltip'
......
......@@ -90,7 +90,7 @@ const NormalForm = () => {
remember_me: true,
},
})
router.push('/')
router.push('/apps')
}
finally {
setIsLoading(false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment