You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dynamically add more routes to the router. The argument must be an Array using the same route config format with the `routes` constructor option.
430
432
433
+
### router.addRoute
434
+
435
+
Add a new route to the router. If the route has a `name` and there is already an existing one with the same one, it overwrites it.
436
+
437
+
Signature:
438
+
439
+
```ts
440
+
addRoute(route: RouteConfig): () =>void
441
+
```
442
+
443
+
### router.addRoute
444
+
445
+
Add a new route record as the child of an existing route. If the route has a `name` and there is already an existing one with the same one, it overwrites it.
Get the list of all the active route records. **Note only documented properties are considered Public API**, avoid using any other propery e.g. `regex` as it doesn't exist on Vue Router 4.
0 commit comments