Hello i have some problem i want to push params in 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 }
})
);
}
}
when i do that i have this error i don't understand why
Argument type {name: string, params: {orderId: Number}} is not assignable to parameter type RawLocation Type Number is not assignable to type string
Please help thank you