feat: 更新邀请码功能
This commit is contained in:
@@ -47,9 +47,9 @@ onNuxtReady(() => {
|
||||
>
|
||||
<div class="text-center">
|
||||
<div v-if="route.query.email_verification_required && route.query.email_verification_required === 'none'">
|
||||
<h2 class="text-h4">Your registration is successful</h2>
|
||||
<h2 class="text-h4">{{$('Your registration is successful')}}</h2>
|
||||
<p class="mt-5">
|
||||
You can now <NuxtLink to="/account/signin">login</NuxtLink> to your account.
|
||||
{{$('You can now')}} <NuxtLink to="/account/signin">{{$('signIn')}}</NuxtLink> {{$t('to your account.')}}
|
||||
</p>
|
||||
</div>
|
||||
<div v-else>
|
||||
|
||||
@@ -64,15 +64,15 @@ const submit = async () => {
|
||||
if (error.value.status === 400) {
|
||||
for (const key in formData.value) {
|
||||
if (error.value.data[key]) {
|
||||
fieldErrors.value[key] = error.value.data[key][0]
|
||||
fieldErrors.value[key] = $i18n.t(error.value.data[key][0])
|
||||
}
|
||||
}
|
||||
if (error.value.data.non_field_errors) {
|
||||
errorMsg.value = error.value.data.non_field_errors[0]
|
||||
errorMsg.value = $i18n.t(error.value.data.non_field_errors[0])
|
||||
}
|
||||
} else {
|
||||
if (error.value.data.detail) {
|
||||
errorMsg.value = error.value.data.detail
|
||||
errorMsg.value = $i18n.t(error.value.data.detail)
|
||||
} else {
|
||||
errorMsg.value = 'Something went wrong. Please try again.'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user