25 lines
342 B
Vue
25 lines
342 B
Vue
<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> |