import { useRouter, useRoute } from "vue-router" /** * 页面跳转 * @returns Funciton 页面跳转函数 */ export function useRouteJump() { const router = useRouter() const route = useRoute() const goPath = (path="", query={})=> { router.push({path, query}) } return { goPath, route } }