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 {
10
10
const blockMap = await $notion .getPageBlocks (
11
11
" 8c1ab01960b049f6a282dda64a94afc7"
12
12
);
13
+
13
14
return { blockMap };
14
15
},
15
16
};
Original file line number Diff line number Diff line change 3
3
</template >
4
4
5
5
<script >
6
+ import { NotionRenderer , getPageBlocks } from " vue-notion" ;
7
+
6
8
export default {
9
+ components: { NotionRenderer },
7
10
data : () => ({ blockMap: null }),
8
- async asyncData ({ $notion } ) {
11
+ async created ( ) {
9
12
// 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" );
13
14
},
14
15
};
15
16
</script >
You can’t perform that action at this time.
0 commit comments