Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

251
Views
Vuex - When go back save data does not work

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?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!