Hello, I am facing an issue where I need to pass parameters in the URL to another page in NuxtJs
props: {
idPending: {
type: Number,
required: true
}
},
methods: {
fetchpage() {
const orderId = this.idPending;
this.$router.push(
this.localePath({
name: 'Checkout-Confirmation-orderId', // page with params orderId
params: { orderId: orderId }
})
);
}
}
However, when I try to do that, I encounter an error that I'm struggling to understand
Argument type {name: string, params: {orderId: Number}} is not assignable to parameter type RawLocation Type Number is not assignable to type string
Could someone please provide assistance? Thank you very much