12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c23b7ba0"],{"034b":function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.i,".loginBox[data-v-4623f5e6]{position:relative;width:100vw;height:100vh;overflow:hidden}.loginBox>iframe[data-v-4623f5e6]{width:100%;height:100%;border:0}",""]),e.exports=t},6510:function(e,t,r){var n=r("034b");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=r("499e").default;i("e8743a98",n,!0,{sourceMap:!1,shadowMode:!1})},"90a4":function(e,t,r){"use strict";var n=r("6510"),i=r.n(n);i.a},"9ed6":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},i=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"loginBox"},[r("iframe",{attrs:{src:"//edu.cocorobo.hk/LoginIframe?type=2",frameborder:"0"}})])}],o=(r("96cf"),r("1da1")),a=r("5530"),c=r("2f62"),s={data:function(){return{redirect:void 0,timer:null}},watch:{$route:{handler:function(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},methods:Object(a["a"])(Object(a["a"])({},Object(c["b"])({login:"user/login"})),{},{handleLogin:function(){this.$router.push({path:this.redirect||"/"})},getLogin:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.login();case 2:r=t.sent,console.log(r),r&&e.$router.push({path:e.redirect||"/"});case 5:case"end":return t.stop()}}),t)})))()}}),beforeDestroy:function(){clearInterval(this.timer),this.timer=null},mounted:function(){var e=this;this.getLogin(),this.timer=setInterval((function(){e.getLogin()}),2e3)}},u=s,l=(r("90a4"),r("2877")),h=Object(l["a"])(u,n,i,!1,null,"4623f5e6",null);t["default"]=h.exports}}]);
- //# sourceMappingURL=chunk-c23b7ba0.a7641707.js.map
|