fix(vue-app): fix exception on property access of undefined object (#5867)

This commit is contained in:
Rafał Chłodnicki 2019-06-04 21:48:56 +02:00 committed by Pooya Parsa
parent 262ea5c31a
commit ab72355669

View File

@ -42,7 +42,12 @@ export default {
}
const [matchedRoute] = this.$route.matched
const Component = matchedRoute && matchedRoute.components.default
if (!matchedRoute) {
return this.$route.path
}
const Component = matchedRoute.components.default
if (Component && Component.options) {
const { options } = Component