app/js/use-route-126c4f06.js

13 lines
372 B
JavaScript
Raw Normal View History

2025-02-13 08:26:53 +08:00
import { ay as r } from "./index-476be0bb.js";
const o = { to: [String, Object], url: String, replace: Boolean };
function e({ to: r, url: o, replace: e, $router: t }) {
r && t
? t[e ? "replace" : "push"](r)
: o && (e ? location.replace(o) : (location.href = o));
}
function t() {
const o = r().proxy;
return () => e(o);
}
export { o as a, e as r, t as u };