79760314

Date: 2025-09-09 21:59:19
Score: 1.5
Natty:
Report link

https://router.vuejs.org/guide/essentials/dynamic-matching.html#catch-all-404-not-found-route

const routes = [
  // will match everything and put it under `route.params.pathMatch`
  { path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound },
  // will match anything starting with `/user-` and put it under `route.params.afterUser`
  { path: '/user-:afterUser(.*)', component: UserGeneric },
]

P.S. don't thank me))

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: IDerevyansky