diff --git a/src/index.ts b/src/index.ts index acf4b4a..a6c572e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -82,7 +82,7 @@ class VueBreadcrumbs implements PluginObject> { }, getPath(crumb: RouteRecord): string { let { path } = crumb; - + path = path.replace(/\((.*?)\)/, ''); for (const [key, value] of Object.entries(this.$route.params)) { path = path.replace(`:${key}`, value); }