File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export default {
1010 const blockMap = await $notion .getPageBlocks (
1111 " 8c1ab01960b049f6a282dda64a94afc7"
1212 );
13+
1314 return { blockMap };
1415 },
1516};
Original file line number Diff line number Diff line change 33</template >
44
55<script >
6+ import { NotionRenderer , getPageBlocks } from " vue-notion" ;
7+
68export default {
9+ components: { NotionRenderer },
710 data : () => ({ blockMap: null }),
8- async asyncData ({ $notion } ) {
11+ async created ( ) {
912 // get Notion blocks from the API via a Notion pageId
10- const blockMap = await $notion .getPageBlocks (" 8c1ab01960b049f6a282dda64a94afc7" );
11-
12- return { blockMap }
13+ this .blockMap = await getPageBlocks (" 8c1ab01960b049f6a282dda64a94afc7" );
1314 },
1415};
1516 </script >
You can’t perform that action at this time.
0 commit comments