Skip to content

Commit

Permalink
fix(vue-app): serialize route meta to allow functions (#9634)
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob <jacob@adivare.nl>
  • Loading branch information
SlayerOfTheBad and Jacob committed Aug 11, 2021
1 parent 7142497 commit 457984a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-app/template/router.js
Expand Up @@ -52,7 +52,7 @@ import scrollBehavior from './router.scrollBehavior.js'
res += (route.components) ? nextIndent + 'components: {' + resMap + '\n' + baseIndent + tab + '}' : ''
res += (route.component) ? nextIndent + 'component: ' + route._name : ''
res += (route.redirect) ? nextIndent + 'redirect: ' + (typeof route.redirect === 'function' ? serialize(route.redirect) : JSON.stringify(route.redirect)) : ''
res += (route.meta) ? nextIndent + 'meta: ' + JSON.stringify(route.meta) : ''
res += (route.meta) ? nextIndent + 'meta: ' + serialize(route.meta) : ''
res += (typeof route.props !== 'undefined') ? nextIndent + 'props: ' + (typeof route.props === 'function' ? serialize(route.props) : JSON.stringify(route.props)) : ''
res += (typeof route.caseSensitive !== 'undefined') ? nextIndent + 'caseSensitive: ' + JSON.stringify(route.caseSensitive) : ''
res += (route.alias) ? nextIndent + 'alias: ' + JSON.stringify(route.alias) : ''
Expand Down

0 comments on commit 457984a

Please sign in to comment.