<script setup>

const dataStore = useDataStore()
const route = useRoute()

const itemInfo = ref({})

const setupPage = () => {
  if(route.params) {
    if(route.params.id) itemInfo.value = dataStore.getCreatedDocumentById(Number(route.params.id))
  }
}

setupPage()
</script>

<template>

  {{itemInfo}}

</template>

<style scoped>

</style>