bug fix and translated login error msg

This commit is contained in:
0xJacky 2022-08-11 21:30:44 +08:00
parent f11fd19288
commit b2e837f4b1
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
35 changed files with 324 additions and 301 deletions

View file

@ -53,7 +53,7 @@ const onSubmit = () => {
const next = (route.query?.next || '').toString() || '/'
await router.push(next)
}).catch(e => {
message.error(e.message ?? $gettext('Server error'))
message.error($gettext(e.message ?? 'Server error'))
})
})
}