|
|
|
+"use strict";(self["webpackChunkmy_project"]=self["webpackChunkmy_project"]||[]).push([[220],{220:function(t,e,r){r.r(e),r.d(e,{default:function(){return h}});var i=function(){var t=this;t._self._c;return t._m(0)},n=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"loginBox"},[e("iframe",{attrs:{src:"//edu.cocorobo.cn/course/login?type=2",frameborder:"0"}})])}],s=(r(4114),r(3518)),o={name:"LoginPage",data(){return{redirect:void 0,timer:null}},watch:{$route:{handler:function(t){this.redirect=t.query&&t.query.redirect},immediate:!0}},methods:{...(0,s.i0)({login:"user/login"}),handleLogin(){this.$router.push({path:this.redirect||"/"})},async getLogin(){const t=await this.login();t&&this.$router.push({path:this.redirect||"/"})}},beforeDestroy(){clearInterval(this.timer),this.timer=null},mounted(){this.getLogin(),this.timer=setInterval((()=>{this.getLogin()}),2e3)}},u=o,a=r(1656),c=(0,a.A)(u,i,n,!1,null,"445d70f8",null),h=c.exports}}]);
|