Define a route in Vue Router 4 with the necessary parameters, including agencyId and deliveryPriceSetupType.
Use the props option in the route configuration to pass these parameters as props to the component.
Access the props in the component and observe that while agencyId is successfully received, deliveryPriceSetupType is not.
Expected behavior
I expect both agencyId and deliveryPriceSetupType to be passed as props to the component, allowing me to access them within the component's logic.
I can successfully retrieve deliveryPriceSetupType. Could this provide a clue to the underlying cause?
Additional information
This issue seems to be specific to the deliveryPriceSetupType parameter, as first parameter(agencyId) is passed successfully.
I have also checked for any typos or syntax errors in my code, but have not found any.
There haven't been any changes in the code, but suddenly the deliveryPriceSetupType is displaying correctly. Closing the issue as I'm not sure what's going on 🙄
Reproduction
ok
Steps to reproduce the bug
Define a route in Vue Router 4 with the necessary parameters, including agencyId and deliveryPriceSetupType. Use the props option in the route configuration to pass these parameters as props to the component. Access the props in the component and observe that while agencyId is successfully received, deliveryPriceSetupType is not.
Expected behavior
I expect both agencyId and deliveryPriceSetupType to be passed as props to the component, allowing me to access them within the component's logic.
Actual behavior
When defining props like this:
The deliveryPriceSetupType is not being received as props, despite being defined as such.
When defining props as follows:
It has been observed that deliveryPriceSetupType is received as props.
When I explicitly specify the type in the setup function of the component like this:
I can successfully retrieve deliveryPriceSetupType. Could this provide a clue to the underlying cause?
Additional information
This issue seems to be specific to the deliveryPriceSetupType parameter, as first parameter(agencyId) is passed successfully. I have also checked for any typos or syntax errors in my code, but have not found any.
Environment: