I'm trying to do is pass an array from query to the backend using Vue.js and router.
So I have this method:
submitForm () {
this.$router.push({
name: 'AuctionResult',
query: {
models: this.selectedModels.map(e => e.value)
}
})
},
As a result will be query like this: ?models=MODEL1&models=MODEL2...
But how can I make inputs look like array, like this: ?models[]=MODEL1&models[]=MODEL2... ???
I didn`t find anything in the documentation.