var n=(p,g,e)=>new Promise((h,r)=>{var i=t=>{try{a(e.next(t))}catch(l){r(l)}},s=t=>{try{a(e.throw(t))}catch(l){r(l)}},a=t=>t.done?h(t.value):Promise.resolve(t.value).then(i,s);a((e=e.apply(p,g)).next())});import{a as u,aB as o}from"./index-CZJgrp0v.js";var m="竞赛活动管理",c={appName:m};const U={data(){return{share:{title:"",path:"",imageUrl:"",withShareTicket:!0}}},onShareAppMessage(p){return n(this,null,function*(){if(!(yield u().judgeIsAuth()))return;let e=this,h=o(),r=h[h.length-1],i=r.$page.fullPath,s=c.appName,a=this.share.path?this.share.apth:i;return(e.url||"").includes("weixin.qq")&&(a=`${r.route}?url=${encodeURIComponent(e.url)}`),{title:this.share.title?this.share.title:s,path:a,imageUrl:this.share.imageUrl?this.share.imageUrl:"",withShareTicket:this.share.withShareTicket}})}};export{U as s};
