I am currently utilizing Nuxt.js (Version 2 of Nuxt) My page has query parameters located at
https://localhost:9000/applicant?period_manual[]=2022-10-09&period_manual[]=2022-10-19
I am in need of extracting the period_manual
parameters from the query.
When attempting to retrieve the data, I encounter these issues:
console.log(this.$route.query.period_manual) //- Results in 'undefined'
console.log(this.$route.query) //- Outputs {period_manual[]: ["2022-10-16", "2022-10-25"]}
console.log(this.$route.query.period_manual[]) //- Generates an ESLint error - Parsing error: An element access expression should take an argument
What is the optimal method for retrieving the data contained within period_manual[] from the query request?