wecomQrCode-CdB_WjnY.js 813 B

1
  1. import{cQ as n,ft as i,cs as s,fM as l,fa as d,dk as p,ac as f}from"./builder-DygomDiV.js";const g=["src"],_=n({__name:"wecomQrCode",props:{config:{}},setup(o){const t=o,c=l("");return(async()=>{await d();const e={corpId:t.config.corp_id,agentId:t.config.agent_id,redirectUri:t.config.callback_url};let r=localStorage.getItem("MaxKB-locale")||p()||"en-US";r==="en-US"?r="en":r="zh";const a=encodeURIComponent(e.redirectUri);console.log("redirectUri",e.redirectUri),c.value=`${t.config.qr_url}?login_type=CorpApp&appid=${e.corpId}&agentid=${e.agentId}&redirect_uri=${a}&state=fit2cloud-wecom-qr&lang=${r}&panel_size=small`})(),(e,r)=>(i(),s("iframe",{src:c.value,width:"100%",height:"380px",frameborder:"0",style:{"margin-top":"-30px"}},null,8,g))}}),U=f(_,[["__scopeId","data-v-a2cac525"]]);export{U as default};