This commit is contained in:
parent
a69dc15fa4
commit
cad263dea5
|
|
@ -80,12 +80,7 @@ export default async function Login({
|
|||
})
|
||||
|
||||
if (error) {
|
||||
//return redirect(`${localeString}/login?message=${error.message}`)
|
||||
return new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
resolve(redirect(`${localeString}/login?message=${error.message}`))
|
||||
}, 8000) // 延时 8 秒
|
||||
})
|
||||
return redirect(`${localeString}/login?message=${error.message}`)
|
||||
}
|
||||
|
||||
const { data: homeWorkspace, error: homeWorkspaceError } = await supabase
|
||||
|
|
|
|||
Loading…
Reference in New Issue