12 |
- "use strict";(self["webpackChunkuserManage"]=self["webpackChunkuserManage"]||[]).push([[220],{220:function(e,t,r){r.r(t),r.d(t,{default:function(){return h}});var i=function(){var e=this;e._self._c;return e._m(0)},n=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"loginBox"},[t("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(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},methods:{...(0,s.i0)({login:"user/login"}),handleLogin(){this.$router.push({path:this.redirect||"/"})},async getLogin(){const e=await this.login();e&&this.$router.push({path:this.redirect||"/"})}},beforeDestroy(){clearInterval(this.timer),this.timer=null},mounted(){this.getLogin(),this.timer=setInterval((()=>{this.getLogin()}),2e3)}},a=o,u=r(1656),c=(0,u.A)(a,i,n,!1,null,"445d70f8",null),h=c.exports}}]);
- //# sourceMappingURL=220.56599a77.js.map
|