Skip to content

Commit

Permalink
[#13] Added router sample code in CreatePage.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
qtsky89 committed May 16, 2022
1 parent 3ca2954 commit 3ce1856
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tblog_quasar/src/pages/CreatePage.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<template>
<p>create page</p>
</template>

<script setup>
import { onMounted } from 'vue'
import { useRoute } from 'vue-router'
onMounted(() => {
const route = useRoute()
console.log(route.params)
})
</script>

0 comments on commit 3ce1856

Please sign in to comment.