传递参数 的组件 import {useRouter} from 'vue-router' const router = useRouter() router.push({name:'urlName', params:{key:value}}) 接受参数 的组件 import {useRoute} from 'vue-router' const route = useRoute() console.log(route.params.key) //value