[Vuejs]-How can I show data names field in vue-multiselect plugin in edit page?

0๐Ÿ‘

โœ…

Iโ€™ve managed to solve this by retrieving each field, instead of the previous code which I retrieved all in a single object.

this.axios
    .get(`/api/designations/${this.$route.params.id}`)
    .then((res) => {
        this.form.name = res.data.name;
        this.form.description = res.data.description;
    });

Before:

this.axios
    .get(`/api/designations/${this.$route.params.id}`)
    .then((res) => {
        this.form= res.data;
    });

Leave a comment