mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix(vue-app): fix exception on property access of undefined object (#5867)
This commit is contained in:
parent
262ea5c31a
commit
ab72355669
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user