import { useRouter } from 'vue-router'
const router = useRouter()
state.route = router.options.history.location //获取路由path地址
router.push('/pleasant') //路由跳转
vue3获取路由地址 || vue3路由跳转
于 2024-01-16 11:52:01 首次发布

import { useRouter } from 'vue-router'
const router = useRouter()
state.route = router.options.history.location //获取路由path地址
router.push('/pleasant') //路由跳转