[Vuejs]-Problem: Unhandled error during execution of setup function and Unhandled error during execution of scheduler flush

0👍

Look for a required id param in a route definition, perhaps like,

{
  name: "editUser",
  path: "/user-edit/:id",
  component: EditUser,
}

Make it optional with a "?" –

{
  name: "editUser",
  path: "/user-edit/:id?",
  component: EditUser,
}

Leave a comment