|
@@ -1,12 +1,16 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <div>my</div>
|
|
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <h1>my</h1>
|
|
|
|
|
+ {{ id }} -- {{ name }}
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
import {ref,reactive} from "vue"
|
|
import {ref,reactive} from "vue"
|
|
|
import { useRoute } from "vue-router";
|
|
import { useRoute } from "vue-router";
|
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
|
-console.log(route);
|
|
|
|
|
|
|
+console.log(route,'route');
|
|
|
|
|
+defineProps(['id','name'])
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|