Skip to content

Commit

Permalink
🐛 (layout) pre-set layout in asyncData too
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahul committed Jun 4, 2021
1 parent 6dfdc98 commit 5702d5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/pages/_.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ export default defineComponent({
// Set layout from page
if (page.layout) templateOptions = { ...templateOptions, ...page.layout }
// Set template options
$docus.layout.value = templateOptions
// Set Docus runtime current page
$docus.currentPage.value = page
Expand Down

0 comments on commit 5702d5d

Please sign in to comment.