fix: get wrong search params

This commit is contained in:
NFish 2025-04-18 16:24:42 +08:00
parent 78c0d5485d
commit b3368e2188
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ export default function CheckCode() {
if (ret.is_valid) {
const params = new URLSearchParams(searchParams)
params.set('token', encodeURIComponent(ret.token))
router.push(`/reset-password/set-password?${searchParams.toString()}`)
router.push(`/reset-password/set-password?${params.toString()}`)
}
}
catch (error) { console.error(error) }