<template>
  <div>
    <h1>列表</h1>
    <div class="nav">
      <RouterLink to="/list/demo1">Demo1</RouterLink>
      <RouterLink to="/list/demo2">Demo2</RouterLink>
    </div>
    <RouterView></RouterView>
  </div>
</template>

<script lang="ts" setup>
import { ref, reactive } from "vue";
import { useRoute } from "vue-router";
// 接收参数
const route = useRoute();
console.log(route);
</script>

<style lang="scss" scoped>
</style>
