企微助手 ,仓库名 短剧

extend.17647a1f.js 1.1KB

1
  1. "use strict";(self["webpackChunkqwh5"]=self["webpackChunkqwh5"]||[]).push([[501],{5463:function(e,t,n){n.r(t),n.d(t,{default:function(){return s}});var o=n(3396),a=n(6583),r=n(9733),c=(0,o.aZ)({__name:"extend",setup(e){const{proxy:t}=(0,o.FN)();(0,o.wF)((()=>{if((0,a.W)("againJump"))n();else{let e=encodeURIComponent(window.location.href+"&againJump=true"),t=`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${(0,a.W)("corpid")}&redirect_uri=${e}&response_type=code&scope=snsapi_base&state=1&agentid=1000012#wechat_redirect`;c(t)}}));const n=()=>{r.F.loading({duration:0,message:"加载中...",forbidClick:!0}),t.$axios.get("/api/oauth2/userInfo",{corpid:(0,a.W)("corpid"),code:(0,a.W)("code"),state:(0,a.W)("state")},!0).then((e=>{if(r.F.clear(),e.rst)if((0,a.W)("jumpLink")){let t=decodeURIComponent((0,a.W)("jumpLink"))+"&params="+e.rst.external_userid+"&userId="+e.rst.external_userid;c(t)}else(0,r.F)("无回跳链接!")})).catch((e=>{r.F.clear()}))};function c(e){let t=document.createElement("a");t.href=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)}return(e,t)=>null}});const i=c;var s=i}}]);