13 lines
372 B
JavaScript
13 lines
372 B
JavaScript
|
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 };
|