mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08:00
fix: page redirect to invite-settings when url not contain invite_token
This commit is contained in:
parent
db67e22a11
commit
db7119ddcb
|
@ -16,7 +16,7 @@ export default function CheckCode() {
|
||||||
const searchParams = useSearchParams()
|
const searchParams = useSearchParams()
|
||||||
const email = decodeURIComponent(searchParams.get('email') as string)
|
const email = decodeURIComponent(searchParams.get('email') as string)
|
||||||
const token = decodeURIComponent(searchParams.get('token') as string)
|
const token = decodeURIComponent(searchParams.get('token') as string)
|
||||||
const invite_token = decodeURIComponent(searchParams.get('invite_token') as string)
|
const invite_token = decodeURIComponent(searchParams.get('invite_token') || '')
|
||||||
const [code, setVerifyCode] = useState('')
|
const [code, setVerifyCode] = useState('')
|
||||||
const [loading, setIsLoading] = useState(false)
|
const [loading, setIsLoading] = useState(false)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user