lsc 2 年之前
父节点
当前提交
f54f72a689

文件差异内容过多而无法显示
+ 0 - 0
dist/index.html


文件差异内容过多而无法显示
+ 1 - 1
dist/report.html


+ 0 - 1
dist/static/css/chunk-0ce05972.fa8fe672.css

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

+ 1 - 0
dist/static/css/chunk-f402a094.2fda7fea.css

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

文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.3dc91766.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.6fca3cb6.js


+ 0 - 1
dist/static/js/chunk-0ce05972.09555aaf.js

@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0ce05972"],{"8fb5":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"),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,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.timer=setInterval((function(){e.getLogin()}),2e3)}},s=u,f=(r("f33a"),r("2877")),l=Object(f["a"])(s,n,i,!1,null,"6e9678f6",null);t["default"]=l.exports},f33a:function(e,t,r){"use strict";var n=r("8fb5"),i=r.n(n);i.a}}]);

+ 1 - 0
dist/static/js/chunk-f402a094.8160c4ac.js

@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f402a094"],{6679: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")),a=r("5530"),o=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(a["a"])(Object(a["a"])({},Object(o["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.timer=setInterval((function(){e.getLogin()}),2e3)}},s=u,l=(r("e8a7"),r("2877")),f=Object(l["a"])(s,n,i,!1,null,"44db494c",null);t["default"]=f.exports},e8a7:function(e,t,r){"use strict";var n=r("6679"),i=r.n(n);i.a}}]);

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

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

+ 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 || '/' })
       }

部分文件因为文件数量过多而无法显示