import {useRouter} from "vue-router" // v3获取路由信息 const router =useRouter() console.log(router.getRoutes())