import { useRouter } from 'vue-router'
setup(){
const router = useRouter()
console.log(router.currentRoute.value.query)
console.log(router.currentRoute.value.params)
通过router.currentRoute.value里的参数获取
//路由跳转 router.push
}
最后修改:2022 年 08 月 08 日
© 允许规范转载