N
Nuxt4mo ago
HardWare

How can I prevent showing form data in URL in NuxtUI submit?

Thanks for help
1 Reply
HardWare
HardWareOP4mo ago
<UForm :validate="validate" :state="state" class="space-y-4" @submit.stop.prevent="onSubmit">
<UFormGroup :label="$t('form.input.email')+'*'" name="email">
<UInput v-model="state.email" />
</UFormGroup>
<UFormGroup :label="$t('form.input.password')+'*'" name="password">
<UInput v-model="state.password" type="password" />
</UFormGroup>
<UButton :label="$t('form.button.register')" type="submit" block />
</UForm>
<UForm :validate="validate" :state="state" class="space-y-4" @submit.stop.prevent="onSubmit">
<UFormGroup :label="$t('form.input.email')+'*'" name="email">
<UInput v-model="state.email" />
</UFormGroup>
<UFormGroup :label="$t('form.input.password')+'*'" name="password">
<UInput v-model="state.password" type="password" />
</UFormGroup>
<UButton :label="$t('form.button.register')" type="submit" block />
</UForm>
Want results from more Discord servers?
Add your server