I have a form made with vue an vuex, vuex save the data while it is being type,then, when i go to the next page it show the data in a review page,when i go back with the navigator button, the data saved is showed, but if a type new data, it is no save, the anterior data is still present. here is my code
Form
<b-form>
<b-container fluid>
<b-form-row>
<b-col md="6">
<b-form-group
id="input-group"
class="regular titleColor"
label="Nombre Completo"
>
<b-form-input
type="text"
v-model="nombre_completo"
>
</b-form-input>
</b-form-group>
</b-col>
<b-col>
<b-form-group
id="input-group-2"
class="regular titleColor"
label="Correo electrónico"
>
<b-form-input v-model="correo">
</b-form-input>
</b-form-group>
</b-col>
</b-form-row>
///////// MORE CODE ////////
SAVING DATA IN STORE
computed: {
nombre_completo: {
get() {
return this.$store.state.LeaseForm.arrendatario.nombre_completo;
},
set(nombre_completo) {
this.$store.commit("SET_LEASENAME", nombre_completo);
},
},
tipo_documento: {
get() {
return this.$store.state.LeaseForm.arrendatario.tipo_documento;
},
set(tipo_documento) {
this.$store.commit("SET_LEASEDOCUMENTTYPE", tipo_documento);
},
},
///// MORE CODE ////
Why if im getting the previus data and saving de new, it is no working?