-
Notifications
You must be signed in to change notification settings - Fork 7.4k
TypeScript Compilation Error #790
Description
src/components/Breadcrumb/index.vue:52:18TS2352: Conversion of type '{ path: string; meta: { title: string; }; }' to type 'RouteRecord' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.Type '{ path: string; meta: { title: string; }; }' is missing the following properties from type 'RouteRecord': regex, components, instances, props50 | const first = matched[0]51 | if (!this.isDashboard(first)) {> 52 | matched = [{ path: '/dashboard', meta: { title: 'dashboard' } } as RouteRecord].concat(matched)| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^53 | }54 | this.breadcrumbs = matched.filter((item) => {55 | return item.meta && item.meta.title && item.meta.breadcrumb !== fals