var g=Object.defineProperty;var n=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var p=(r,t,e)=>t in r?g(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,c=(r,t)=>{for(var e in t||(t={}))v.call(t,e)&&p(r,e,t[e]);if(n)for(var e of n(t))A.call(t,e)&&p(r,e,t[e]);return r};import{_ as E,s,a as y,r as C,b,c as D,p as R,d as F,e as o,f as P,v as $}from"./vueFilter.703e6077.js";import{d as l,r as j,c as V,o as B,a,F as I,I as T,b as _,B as x,R as L,e as q,f as w,g as O,h as m}from"./vendor.313df383.js";function K(){import("data:text/javascript,")}const N=l({name:"App"});function k(r,t,e,u,W,G){const f=j("router-view");return B(),V(f)}var z=E(N,[["render",k]]);const U="_error_u56io_1",H="_info_u56io_10";var d={error:U,info:H},M=l({name:"Auth",data(){return{loading:!1}},computed:{isNeedView(){return s.user.status==="login"||this.$route.path==="/login"}},mounted(){this.setAuth()},methods:{async setAuth(){const{query:r}=this.$route,t=r.userInfo||r.Authorization;if(t&&y(t),!this.loading){if(s.user.status==="init"||s.user.status==="error"){this.loading=!0;try{let e=await C.get("/api-auth/api/queryUserInfo",{initRequest:!0});b(e.data)}catch{}this.loading=!1}if(s.user.status==="logout")if(D().isApp)R({api:"login"});else try{let e=this.$route,u=c({returnUrl:this.$route.path},this.$route.query);e.meta.isRegister&&(u.isRegister=e.meta.isRegister),this.$router.replace({path:"/login",query:u})}catch{}}}},render(){return a(I,null,[s.user.status==="error"?a("div",{class:d.error},[a("div",{class:d.info},[a(T,{name:"clear",size:"36",color:"#ee0a24"},null),a("span",null,[_("\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5")])]),a(x,{type:"primary",round:!0,onClick:this.setAuth},{default:()=>[_("\u91CD\u65B0\u52A0\u8F7D")]})]):this.isNeedView?a(L,null,null):null])}}),S=[{path:"/",component:M,children:[...F,{path:"/login",name:"login",component:()=>o(()=>import("./login.bc0023f8.js"),["assets/login.bc0023f8.js","assets/login.7729ceba.css","assets/index.5b65d5d9.css","assets/index.0e0d9638.css","assets/index.98eb12d4.css","assets/index.fba8908f.css","assets/vendor.313df383.js","assets/vendor.04eead6e.css","assets/index.df901503.js","assets/index.feb9e0e5.css","assets/vueFilter.703e6077.js","assets/vueFilter.9bd1be7e.css","assets/validate.ba62cd4c.js"]),meta:{isRegister:!1}},{path:"/home",name:"home",component:()=>o(()=>import("./index.b635b495.js"),["assets/index.b635b495.js","assets/index.66617849.css","assets/vendor.313df383.js","assets/vendor.04eead6e.css"])},{path:"/practiceClass",name:"practiceClass",component:()=>o(()=>import("./index.e6762e2a.js"),["assets/index.e6762e2a.js","assets/index.fba8908f.css","assets/index.812861b0.css","assets/vendor.313df383.js","assets/vendor.04eead6e.css","assets/index.7898ecd9.js","assets/index.a5acaf38.css","assets/vueFilter.703e6077.js","assets/vueFilter.9bd1be7e.css"]),meta:{title:"\u966A\u7EC3\u8BFE"}}]},...P,{path:"/memberCenter",name:"memberCenter",component:()=>o(()=>import("./index.183ebd29.js"),["assets/index.183ebd29.js","assets/index.b6afaae3.css","assets/index.0e0d9638.css","assets/index.fba8908f.css","assets/icon_teacher.47232fc1.js","assets/icon_teacher.cb7ac537.css","assets/vueFilter.703e6077.js","assets/vueFilter.9bd1be7e.css","assets/vendor.313df383.js","assets/vendor.04eead6e.css","assets/index.f631f401.js","assets/index.02361c55.css"]),meta:{title:"\u4F1A\u5458\u4E2D\u5FC3"}},{path:"/registerProtocol",name:"registerProtocol",component:()=>o(()=>import("./register.f51a6e67.js"),["assets/register.f51a6e67.js","assets/index.module.8f24866b.js","assets/index.module.85d8aa1a.css","assets/vendor.313df383.js","assets/vendor.04eead6e.css"]),meta:{title:"\u6CE8\u518C\u534F\u8BAE"}},{path:"/privacyProtocol",name:"privacyProtocol",component:()=>o(()=>import("./privacy.431db268.js"),["assets/privacy.431db268.js","assets/index.module.8f24866b.js","assets/index.module.85d8aa1a.css","assets/vendor.313df383.js","assets/vendor.04eead6e.css"]),meta:{title:"\u9690\u79C1\u534F\u8BAE"}},{path:"/:pathMatch(.*)*",component:()=>o(()=>import("./index.1eb6b1ae.js"),["assets/index.1eb6b1ae.js","assets/index.f5943e6d.css","assets/index.fba8908f.css","assets/vendor.313df383.js","assets/vendor.04eead6e.css"]),meta:{title:"404 Not Fund",platform:"STUDENT"}}];const h=q({history:w(),routes:S});h.beforeEach((r,t,e)=>{document.title=r.meta.title||"\u9177\u4E50\u79C0",e()});const i=O(z);m.locale("zh-ch");i.config.globalProperties.$dayjs=m;i.config.globalProperties.$filters=$;i.use(h);i.mount("#app");export{K as __vite_legacy_guard};