1 |
- System.register(["./index-legacy.48c8d62c.js"],(function(){"use strict";var t,o,e,n,s,a,r,i,p,u,c,T,l,f,h,m,w;return{setters:[function(C){t=C.d,o=C.r,e=C.b,n=C.c,s=C.a,a=C.T,r=C.F,i=C.V,p=C.A,u=C.g,c=C.h,T=C.p,l=C.j,f=C.k,h=C.e,m=C.f,w=C.i}],execute:function(){var C=t({name:"App",setup:function(){var t=o({showToast:!1,showToastCenter:!1});return e.on("toastShow",(function(o){"center"===o&&(t.showToastCenter=!0),t.showToast=!0})),e.on("toastClose",(function(o){t.showToast=!1,"center"===o&&setTimeout((function(){t.showToastCenter=!1}),300)})),e.on("toastStatus",(function(){return t.showToast})),function(){return n(r,null,[n(s("router-view"),null,null),n("div",{class:["appRootToast",t.showToastCenter?"appRootToastCenter":""]},[n(a,{show:t.showToast,"onUpdate:show":function(o){return t.showToast=o},overlay:!0,duration:3e4},{message:function(){return n(r,null,[n(i,{class:"toastAnimate",animationData:p},null)])}})])])}}}),y=u(C).use(c);T({api:"getToken"}).then((function(t){var o=t.content;null!=o&&o.accessToken&&l(o.tokenType+" "+o.accessToken)})),f({api:"getVersion"},(function(t){m.version=t.content.version,console.log(t,"version")}));var v=window.paymentType;h().isTeacher||"TEACHER"===v?m.platformType="TEACHER":h().isStudent||"STUDENT"===v?m.platformType="STUDENT":h().isSchool||"SCHOOL"===v?m.platformType="SCHOOL":m.platformType="TEACHER","TEACHER"===m.platformType?m.platformApi="/api-teacher":"SCHOOL"===m.platformType?m.platformApi="/api-school":m.platformApi="/api-student",y.use(w),y.mount("#app")}}}));
|