lsc 2 년 전
부모
커밋
8b79d31646

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/index.html


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
dist/report.html


+ 0 - 1
dist/static/css/chunk-01bf451b.f622b7ea.css

@@ -1 +0,0 @@
-.loginBox[data-v-114ac507]{position:relative;width:100vw;height:100vh;overflow:hidden}.loginBox>iframe[data-v-114ac507]{width:100%;height:100%;border:0}

+ 1 - 0
dist/static/css/chunk-7d027967.7f5e6538.css

@@ -0,0 +1 @@
+.loginBox[data-v-4dc8186e]{position:relative;width:100vw;height:100vh;overflow:hidden}.loginBox>iframe[data-v-4dc8186e]{width:100%;height:100%;border:0}

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/app.2af97d38.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/app.e9622d69.js


+ 0 - 1
dist/static/js/chunk-01bf451b.be61ec30.js

@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-01bf451b"],{"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.cn/course/login?type=2",frameborder:"0"}})])}],c=(r("96cf"),r("1da1")),o=r("5530"),a=r("2f62"),u={data:function(){return{redirect:void 0,timer:null}},watch:{$route:{handler:function(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},methods:Object(o["a"])(Object(o["a"])({},Object(a["b"])({login:"user/login"})),{},{handleLogin:function(){this.$router.push({path:this.redirect||"/"})},getLogin:function(){var e=this;return Object(c["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)}},s=u,l=(r("f39d"),r("2877")),f=Object(l["a"])(s,n,i,!1,null,"114ac507",null);t["default"]=f.exports},a1a5:function(e,t,r){},f39d:function(e,t,r){"use strict";var n=r("a1a5"),i=r.n(n);i.a}}]);

+ 1 - 0
dist/static/js/chunk-7d027967.8abff7db.js

@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7d027967"],{"6605e":function(e,t,r){},"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.cn/course/login?type=2",frameborder:"0"}})])}],c=(r("96cf"),r("1da1")),o=r("5530"),u=r("2f62"),a={data:function(){return{redirect:void 0,timer:null}},watch:{$route:{handler:function(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},methods:Object(o["a"])(Object(o["a"])({},Object(u["b"])({login:"user/login"})),{},{handleLogin:function(){this.$router.push({path:this.redirect||"/"})},getLogin:function(){var e=this;return Object(c["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)}},s=a,l=(r("b792"),r("2877")),d=Object(l["a"])(s,n,i,!1,null,"4dc8186e",null);t["default"]=d.exports},b792:function(e,t,r){"use strict";var n=r("6605e"),i=r.n(n);i.a}}]);

+ 3 - 5
src/store/modules/user.js

@@ -69,11 +69,9 @@ const actions = {
       eduGet()
         .then(response => {
           console.log(response)
-          console.log(response.value)
-          // var _user = response.value[0][0]
-          var _user = response
-          // setToken(_user.userid)
-          resolve(_user)
+          var _user = response[0][0]
+          setToken(_user.userid)
+          resolve(_user.userid)
         })
         .catch(error => {
           reject(error)

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

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

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.