2 lines
843 B
JavaScript
2 lines
843 B
JavaScript
import{ay as n,aB as i,aE as s,aW as l,bD as d,co as p,cf as g}from"./admin-DgPvPHD7.js";const _=["src"],m=n({__name:"wecomQrCode",props:{config:{}},setup(a){const t=a,r=i("");return(async()=>{await d();const e={corpId:t.config.corp_id,agentId:t.config.agent_id,redirectUri:t.config.callback_url};let o=localStorage.getItem("MaxKB-locale")||p()||"en-US";o==="en-US"?o="en":o="zh";const c=encodeURIComponent(e.redirectUri);console.log("redirectUri",e.redirectUri),r.value=`https://login.work.weixin.qq.com/wwlogin/sso/login?login_type=CorpApp&appid=${e.corpId}&agentid=${e.agentId}&redirect_uri=${c}&state=fit2cloud-wecom-qr&lang=${o}&panel_size=small`})(),(e,o)=>(s(),l("iframe",{src:r.value,width:"100%",height:"380px",frameborder:"0",style:{"margin-top":"-30px"}},null,8,_))}}),w=g(m,[["__scopeId","data-v-c3a3b381"]]);export{w as default};
|