Files
likeadmin_java/public/mobile/assets/router-navigate.cf3e6ea4.js
damonyuan acebf25ddc debug
2024-11-18 16:02:20 +08:00

2 lines
889 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{b0 as t,o as e,b as a,w as n,E as s,i as o}from"./index-616cf5a9.js";import{_ as l}from"./_plugin-vue_export-helper.1b428a4d.js";const r=l({options:{virtualHost:!0},externalClasses:["class"],props:{to:{type:[String,Object]},navType:{type:String,default:"navigate"},delta:{type:Number,default:1}},computed:{url(){if(this.to){const e=t[this.navType],a=this.$uniRouter.resolve(this.to,e);return null==a?void 0:a.fullPath}}},methods:{navigate(){const e=t[this.navType];if(null==e)return console.error(` "navType" unknown type \n\n value${this.navType}`);let a=this.to||{};"navigateBack"==this.navType&&(a={delta:this.delta}),this.$uniRouter.navigate(a,e)}}},[["render",function(t,l,r,i,u,p){const v=o;return e(),a(v,{"hover-class":"none",url:p.url,"open-type":r.navType,delta:r.delta},{default:n((()=>[s(t.$slots,"default")])),_:3},8,["url","open-type","delta"])}]]);export{r as _};