@vtj/pro 0.9.19 → 0.9.21

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,A=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,B=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={}))v.call(t,o)&&g(e,o,t[o]);if(w)for(var o of w(t))B.call(t,o)&&g(e,o,t[o]);return e},x=(e,t)=>A(e,O(t));var u=(e,t,o)=>new Promise((i,m)=>{var p=n=>{try{r(o.next(n))}catch(a){m(a)}},s=n=>{try{r(o.throw(n))}catch(a){m(a)}},r=n=>n.done?i(n.value):Promise.resolve(n.value).then(p,s);r((o=o.apply(e,t)).next())});import{useRoute as I}from"./vue-router-CrZzyM_O.js";import{T as R,a as S,O as T,u as q}from"./index-Dq0Xjzi-.js";import{a as y}from"./element-plus-C1NYT3Gu.js";import"./vxe-CzgOUQRv.js";import{E as K}from"./extension-D9o1Fgjv.js";import{d as $,aA as _,c as b,o as G}from"./vue-DEqBd9tH.js";import{_ as L}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./mockjs-D_rM_kf7.js";import"./dayjs-D_Mdy0hN.js";import"./monaco-editor-BhWNbPWS.js";import"./lodash-es-Cd_vyJR8.js";import"./@vueuse-54eSL_G4.js";import"./@element-plus-icons-vue-CClttscX.js";import"./shared-CMPiinVg.js";import"./html2canvas-D2Pt4KSj.js";const M={class:"loading"},U=$({__name:"auth",setup(e){return u(this,null,function*(){let t,o;const i=I(),m=new T,p=([t,o]=_(()=>m.getExtension().catch(()=>null)),t=yield t,o(),t),{adapters:s}=p?([t,o]=_(()=>new K(p).load()),t=yield t,o(),t):{},r=s==null?void 0:s.access,n=s==null?void 0:s.remote,a=r?new R(x(E({},r),{alert:y.alert,storageKey:S})):void 0,C=c=>u(this,null,function*(){const h=`${n}/api/open/user/${c}`,l=yield q(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{a==null||a.login(d);const c=i.query.redirect;location.href=decodeURIComponent(c||"/")}catch(c){location.reload()}return(c,h)=>(G(),b("div",M,"正在登录中..."))})}}),et=L(U,[["__scopeId","data-v-b861aa1a"]]);export{et as default};
1
+ var k=Object.defineProperty,A=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,B=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={}))v.call(t,o)&&g(e,o,t[o]);if(w)for(var o of w(t))B.call(t,o)&&g(e,o,t[o]);return e},x=(e,t)=>A(e,O(t));var u=(e,t,o)=>new Promise((i,m)=>{var p=n=>{try{r(o.next(n))}catch(a){m(a)}},s=n=>{try{r(o.throw(n))}catch(a){m(a)}},r=n=>n.done?i(n.value):Promise.resolve(n.value).then(p,s);r((o=o.apply(e,t)).next())});import{useRoute as I}from"./vue-router-CrZzyM_O.js";import{T as R,a as S,O as T,u as q}from"./index-CfUBkLtJ.js";import{a as y}from"./element-plus-C1NYT3Gu.js";import"./vxe-CzgOUQRv.js";import{E as K}from"./extension-DMkHTD-w.js";import{d as $,aA as _,c as b,o as G}from"./vue-DEqBd9tH.js";import{_ as L}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./mockjs-D_rM_kf7.js";import"./dayjs-D_Mdy0hN.js";import"./monaco-editor-BhWNbPWS.js";import"./lodash-es-Cd_vyJR8.js";import"./@vueuse-54eSL_G4.js";import"./@element-plus-icons-vue-CClttscX.js";import"./shared-CMPiinVg.js";import"./html2canvas-D2Pt4KSj.js";const M={class:"loading"},U=$({__name:"auth",setup(e){return u(this,null,function*(){let t,o;const i=I(),m=new T,p=([t,o]=_(()=>m.getExtension().catch(()=>null)),t=yield t,o(),t),{adapters:s}=p?([t,o]=_(()=>new K(p).load()),t=yield t,o(),t):{},r=s==null?void 0:s.access,n=s==null?void 0:s.remote,a=r?new R(x(E({},r),{alert:y.alert,storageKey:S})):void 0,C=c=>u(this,null,function*(){const h=`${n}/api/open/user/${c}`,l=yield q(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{a==null||a.login(d);const c=i.query.redirect;location.href=decodeURIComponent(c||"/")}catch(c){location.reload()}return(c,h)=>(G(),b("div",M,"正在登录中..."))})}}),et=L(U,[["__scopeId","data-v-b861aa1a"]]);export{et as default};