You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
399 B
Vue
27 lines
399 B
Vue
|
5 years ago
|
<template>
|
||
|
|
<detail :id="id" />
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script lang="ts">
|
||
|
|
import { defineComponent } from 'vue'
|
||
|
|
import Detail from './components/Detail.vue'
|
||
|
|
import { useRoute } from 'vue-router'
|
||
|
|
|
||
|
|
export default defineComponent({
|
||
|
|
// name: 'ExampleDetail',
|
||
|
|
components: {
|
||
|
|
Detail
|
||
|
|
},
|
||
|
|
setup() {
|
||
|
|
const { query } = useRoute()
|
||
|
|
|
||
|
|
return {
|
||
|
|
id: query.id
|
||
|
|
}
|
||
|
|
}
|
||
|
|
})
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style>
|
||
|
|
</style>
|