vant/v3/assets/use-route.82f2be69.js
2024-04-20 08:49:23 +00:00

2 lines
288 B
JavaScript

import{P as n}from"./vue-libs.b44bc779.js";const c={to:[String,Object],url:String,replace:Boolean};function a({to:e,url:o,replace:t,$router:r}){e&&r?r[t?"replace":"push"](e):o&&(t?location.replace(o):location.href=o)}function i(){const e=n().proxy;return()=>a(e)}export{a,c as r,i as u};