<script lang="ts">
import { defineComponent, onMounted } from "vue";
import { useRoute, useRouter } from "vue-router";
export default defineComponent({
name: "about",
setup() {
const route = useRoute(); //获取路由
console.log(route.path);
},
});
</script>