lsc 1 year ago
parent
commit
3f3ce85833

+ 1 - 1
dist/index.html

@@ -1 +1 @@
-<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=favicon.ico><title>cocorobo</title></head><body><noscript><strong>We're sorry but cocorobo doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=static/js/chunk-vendors.0b34b779.js></script><script src=static/js/app.6fc74acf.js></script></body></html><script>document.domain = "cocorobo.hk"</script>
+<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=favicon.ico><title>cocorobo</title></head><body><noscript><strong>We're sorry but cocorobo doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=static/js/chunk-vendors.0b34b779.js></script><script src=static/js/app.b970fb34.js></script></body></html><script>document.domain = "cocorobo.hk"</script>

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.b970fb34.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.b970fb34.js.map


+ 0 - 2
dist/static/js/chunk-3cba2aa3.bbb6bd37.js

@@ -1,2 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3cba2aa3"],{"18f3":function(e,t,r){var n=r("ce2c");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=r("499e").default;i("0d575ed8",n,!0,{sourceMap:!1,shadowMode:!1})},"4abd":function(e,t,r){"use strict";var n=r("18f3"),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,r&&e.$router.push({path:e.redirect||"/"});case 4: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,d=(r("4abd"),r("2877")),f=Object(d["a"])(u,n,i,!1,null,"5497deef",null);t["default"]=f.exports},ce2c:function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.i,".loginBox[data-v-5497deef]{position:relative;width:100vw;height:100vh;overflow:hidden}.loginBox>iframe[data-v-5497deef]{width:100%;height:100%;border:0}",""]),e.exports=t}}]);
-//# sourceMappingURL=chunk-3cba2aa3.bbb6bd37.js.map

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-3cba2aa3.bbb6bd37.js.map


+ 2 - 0
dist/static/js/chunk-c23b7ba0.a7641707.js

@@ -0,0 +1,2 @@
+(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

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-c23b7ba0.a7641707.js.map


+ 1 - 0
src/views/login/index.vue

@@ -31,6 +31,7 @@ export default {
     },
     async getLogin() {
       const userid = await this.login()
+      console.log(userid)
       if (userid) {
         this.$router.push({ path: this.redirect || '/' })
       }

Some files were not shown because too many files changed in this diff