@vtj/pro 0.9.4 → 0.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- var k=Object.defineProperty,v=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var g=(e,t,o)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,E=(e,t)=>{for(var o in t||(t={}))B.call(t,o)&&g(e,o,t[o]);if(w)for(var o of w(t))I.call(t,o)&&g(e,o,t[o]);return e},x=(e,t)=>v(e,A(t));var u=(e,t,o)=>new Promise((i,m)=>{var p=n=>{try{a(o.next(n))}catch(r){m(r)}},s=n=>{try{a(o.throw(n))}catch(r){m(r)}},a=n=>n.done?i(n.value):Promise.resolve(n.value).then(p,s);a((o=o.apply(e,t)).next())});import{useRoute as R}from"./vue-router-70esBOLy.js";import{D as S,A as q,N as D,u as K}from"./index-5i6FClbb.js";import{c as y}from"./element-plus-YyQpMNX9.js";import"./vxe-y57a8oB3.js";import{E as N}from"./extension-C8ZhAfEn.js";import{d as O,aB as _,c as $,o as b}from"./vue-MNNkR0KN.js";import{_ as G}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./mockjs-BiYWQEnZ.js";import"./dayjs-DO-COJPZ.js";import"./monaco-editor-Lba3v2gb.js";import"./lodash-es-Cmvm8wvQ.js";import"./@vueuse-lzvNycZY.js";import"./@element-plus-icons-vue-Cffh5gMs.js";import"./shared-BAqo0W56.js";import"./html2canvas-CIV5arX1.js";const L={class:"loading"},M=O({__name:"auth",setup(e){return u(this,null,function*(){let t,o;const i=R(),m=new D,p=([t,o]=_(()=>m.getExtension().catch(()=>null)),t=yield t,o(),t),{adapters:s}=p?([t,o]=_(()=>new N(p).load()),t=yield t,o(),t):{},a=s==null?void 0:s.access,n=s==null?void 0:s.remote,r=a?new S(x(E({},a),{alert:y.alert,storageKey:q})):void 0,C=c=>u(this,null,function*(){const h=`${n}/api/open/user/${c}`,l=yield K(h).catch(()=>null);return!l||!l.success?(yield y.alert("登录失败"),null):l.data}),f=i.query.token,d=f?([t,o]=_(()=>C(f)),t=yield t,o(),t):null;if(d)try{r==null||r.login(d);const c=i.query.redirect;location.href=decodeURIComponent(c||"/")}catch(c){location.reload()}return(c,h)=>(b(),$("div",L,"正在登录中..."))})}}),et=G(M,[["__scopeId","data-v-b861aa1a"]]);export{et as default};
1
+ var k=Object.defineProperty,v=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var g=(e,t,o)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,E=(e,t)=>{for(var o in t||(t={}))B.call(t,o)&&g(e,o,t[o]);if(w)for(var o of w(t))I.call(t,o)&&g(e,o,t[o]);return e},x=(e,t)=>v(e,A(t));var u=(e,t,o)=>new Promise((i,m)=>{var p=n=>{try{a(o.next(n))}catch(r){m(r)}},s=n=>{try{a(o.throw(n))}catch(r){m(r)}},a=n=>n.done?i(n.value):Promise.resolve(n.value).then(p,s);a((o=o.apply(e,t)).next())});import{useRoute as R}from"./vue-router-70esBOLy.js";import{D as S,A as q,N as D,u as K}from"./index-C__zQNQ8.js";import{c as y}from"./element-plus-YyQpMNX9.js";import"./vxe-y57a8oB3.js";import{E as N}from"./extension-BebaSne3.js";import{d as O,aB as _,c as $,o as b}from"./vue-MNNkR0KN.js";import{_ as G}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./mockjs-BiYWQEnZ.js";import"./dayjs-DO-COJPZ.js";import"./monaco-editor-Lba3v2gb.js";import"./lodash-es-Cmvm8wvQ.js";import"./@vueuse-lzvNycZY.js";import"./@element-plus-icons-vue-Cffh5gMs.js";import"./shared-BAqo0W56.js";import"./html2canvas-CIV5arX1.js";const L={class:"loading"},M=O({__name:"auth",setup(e){return u(this,null,function*(){let t,o;const i=R(),m=new D,p=([t,o]=_(()=>m.getExtension().catch(()=>null)),t=yield t,o(),t),{adapters:s}=p?([t,o]=_(()=>new N(p).load()),t=yield t,o(),t):{},a=s==null?void 0:s.access,n=s==null?void 0:s.remote,r=a?new S(x(E({},a),{alert:y.alert,storageKey:q})):void 0,C=c=>u(this,null,function*(){const h=`${n}/api/open/user/${c}`,l=yield K(h).catch(()=>null);return!l||!l.success?(yield y.alert("登录失败"),null):l.data}),f=i.query.token,d=f?([t,o]=_(()=>C(f)),t=yield t,o(),t):null;if(d)try{r==null||r.login(d);const c=i.query.redirect;location.href=decodeURIComponent(c||"/")}catch(c){location.reload()}return(c,h)=>(b(),$("div",L,"正在登录中..."))})}}),et=G(M,[["__scopeId","data-v-b861aa1a"]]);export{et as default};