forked from verdnatura/hedera-web
Checkout stepper reset address and agency value when changin method
This commit is contained in:
parent
26320f098f
commit
3ddf73c958
|
@ -1,5 +1,5 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, onMounted, inject, computed } from 'vue';
|
import { ref, onMounted, inject, computed, watch } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useRoute, useRouter } from 'vue-router';
|
import { useRoute, useRouter } from 'vue-router';
|
||||||
|
|
||||||
|
@ -309,6 +309,14 @@ onMounted(async () => {
|
||||||
|
|
||||||
getAddresses();
|
getAddresses();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => orderForm.value.method,
|
||||||
|
() => {
|
||||||
|
orderForm.value.address = '';
|
||||||
|
orderForm.value.agency = '';
|
||||||
|
}
|
||||||
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
Loading…
Reference in New Issue