Two route records for one real route
ShroXd opened this issue · comments
Atriiy commented
Overview
When I check the value of useRouter().getRoutes()
, I found there are two record for one real route. They are similar, but some fields have different values.
Necessary Information
Repetition step
- Clone the vitesse
- Open the src/pages/index.vue
- Add following code:
// ...
const router = useRouter()
const go = () => {
if (name.value)
router.push(`/hi/${encodeURIComponent(name.value)}`)
}
// Add this line
console.log(router.getRoutes())
// ...
- Run the project, check the console tab of browser
Thank you for any help!! I almost punch my screen