clear login error on submit
This commit is contained in:
parent
ed5c7771e8
commit
c63075a88d
|
|
@ -53,6 +53,7 @@ onMounted(() => {
|
|||
});
|
||||
|
||||
const submit = handleSubmit((values, { resetForm }) => {
|
||||
loginError.value = '';
|
||||
store.dispatch('auth/login', {
|
||||
email: values.email,
|
||||
password: values.password,
|
||||
|
|
@ -83,9 +84,9 @@ const onLogin = () => {
|
|||
});
|
||||
}
|
||||
|
||||
const changeServer = () => {
|
||||
router.push({ path: '/setup'});
|
||||
}
|
||||
// const changeServer = () => {
|
||||
// router.push({ path: '/setup'});
|
||||
// }
|
||||
|
||||
</script>
|
||||
|
||||
|
|
@ -139,7 +140,7 @@ const changeServer = () => {
|
|||
</ion-item>
|
||||
<ion-button expand="block" class="ion-margin-top" type="submit">Login</ion-button>
|
||||
</form>
|
||||
<p v-if="loginError" class="error-text">{{ loginError }}</p>
|
||||
<p v-if="loginError" class="error-message">{{ loginError }}</p>
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue