Skip to content

Commit c6ee517

Browse files
committed
Reset vue example
1 parent a970188 commit c6ee517

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

example/pages/nuxt.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default {
1010
const blockMap = await $notion.getPageBlocks(
1111
"8c1ab01960b049f6a282dda64a94afc7"
1212
);
13+
1314
return { blockMap };
1415
},
1516
};

example/pages/vue.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
</template>
44

55
<script>
6+
import { NotionRenderer, getPageBlocks } from "vue-notion";
7+
68
export 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>

0 commit comments

Comments
 (0)