useRouter(跳转), useRoute(获取路由参数)
// login.vue
// 路由跳转-引入-01
import { useRouter } from "vue-router";
// 路由跳转-实例化后-02
// useRouter 使用push方法进行跳转
const router = useRouter()
// 路由跳转-跳转到后台首页-03
router.push('/')
标签:vue,Vue,跳转,router,useRouter,路由
From: https://www.cnblogs.com/leoshi/p/17301834.html