import{u as a,f as c,e as t}from"./vendor-39c32a1b.js";import{$ as i}from"./index-8fa791df.js";function u(){return location.href.split("=")[1].split("#")[0]}function l(){let s=a();c.getAuthCode({corpId:u(),success:o=>{const{code:e}=o;e&&i.dispatch("ddAuthLogin",e).then(()=>{t.exports.Message.success("\u767B\u5F55\u6210\u529F"),s.push("/")}).catch(r=>{t.exports.Message.error(r.msg)}).finally(()=>{})},fail:()=>{},complete:()=>{}})}export{l as g};
