// ../../../../../ProjectSpace/UniAppSpace/nurseapp_v3/node_modules/vant/es/composables/use-route.mjs
import {
  getCurrentInstance
} from "vue";
var routeProps = {
  to: [String, Object],
  url: String,
  replace: Boolean
};
function route({
  to,
  url,
  replace,
  $router: router
}) {
  if (to && router) {
    router[replace ? "replace" : "push"](to);
  } else if (url) {
    replace ? location.replace(url) : location.href = url;
  }
}
function useRoute() {
  const vm = getCurrentInstance().proxy;
  return () => route(vm);
}

export {
  routeProps,
  route,
  useRoute
};
//# sourceMappingURL=chunk-PVEUJMY4.js.map
