At the moment, I have a component that is displayed on the page. When I check the this.$router
variable inside this component, I notice that the full path property is '/hello/reports?report=3849534583957' and the path property is '/hello/reports/'.
In another component, my intention is to send data to the aforementioned component using
this.$router.push({path:`/hello/reports?report=3849534583957`, params: {data: 'hey'}})`
However, when I try to access the params in the vue devtools or by logging this.$route.params.data
, it shows undefined.
I am confident that I am following the correct steps, please assist me in identifying where the mistake is. I even attempted substituting the value of the full path property with that of the regular path property within the push method. Thank you for your help.