lundi 23 novembre 2020

How to pass multiple value with key to url using vue.js

I have this attributes data

 data(){
        return {
             formData :new Form({
                attributes:[],
}),

I have a attribute id and an attribute value so i want to pass this id and value to url so that i cab loop in my controller attributes array and get id and value :

localhost:8000..?attributes[]['attribute_id_1']=attributevalue1&attributes[]['attribute_id_2']=attributevalue2...

I'm redirecting like this :

 this.$router.push({ path: '/search-list',query:
                    {

                     
                    }

Issue is i want to pass this multidimentional array to url, anyother workaround for this is also highly appreciated



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire