PageSourceSearch

https://sparke.cn/_nuxt/C0vcFxGU.js

js sparke.cn collected 2026-10-02 15:26:18 UTC 1,021 bytes, 1 lines download raw bytes

1import"./73H-8xEe.js";import{E as s}from"./zn4TYq_S.js";import{o as a,k as c,j as l}from"./CNCspZWH.js";import{e as i}from"./B7pcLWKw.js";import{useAuthStore as u}from"./DU2hPJJc.js";const w={__name:"loginSuccess",setup(p){const t=c();l(),u(),a(()=>{let e=t.query.code?t.query.code:"";n(e),localStorage.setItem("CODE",e)});const n=async e=>{try{const o=await i({grantType:"social",code:e,state:localStorage.getItem("STATE"),source:"wechat_open",alias:"pc_new"}),r=window.location.origin;console.log("登录结果:",o,"目标源:",r),o.code==200?(window.parent.postMessage({type:"WEIXIN_LOGIN_SUCCESS",userInfo:o.data},r),console.log("已发送登录成功消息到父窗口")):o.code==102?(window.parent.postMessage({type:"WEIXIN_LOGIN_ShowBind",userInfo:{}},r),console.log("已发送显示绑定页面消息到父窗口")):(s.error(o.msg||"登录失败"),console.error("登录错误:",o))}catch(o){console.error("登录请求异常:",o),s.error("登录过程中发生错误")}};return(e,o)=>null}};export{w as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.