976.6ff2b0f3.js 1.1 KB

12
  1. "use strict";(self["webpackChunkuserManage"]=self["webpackChunkuserManage"]||[]).push([[976],{1976:function(e,t,r){r.r(t),r.d(t,{default:function(){return c}});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=this.$store.getters.token;if(e)return void this.$router.push({path:this.redirect||"/"});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),h=(0,a.A)(u,i,n,!1,null,"0e09c68a",null),c=h.exports}}]);
  2. //# sourceMappingURL=976.6ff2b0f3.js.map