lsc 3 ngày trước cách đây
mục cha
commit
a16bc740ee

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/index.html


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/report.html


+ 1 - 0
dist/static/css/chunk-2ba95b61.2f601688.css

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

+ 0 - 1
dist/static/css/chunk-61c3a3df.dc571bfc.css

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

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/app.e3348b20.js


+ 1 - 0
dist/static/js/chunk-2ba95b61.ecd74c0b.js

@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2ba95b61"],{3015:function(e,t,n){"use strict";n("d209")},"9ed6":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this;e._self._c;return e._m(0)},i=[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"}})])}],c=n("c7eb"),o=n("1da1"),a=n("5530"),s=(n("14d9"),n("2f62")),u=n("852e"),d=n.n(u),l={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(s["b"])({login:"user/login"})),{},{handleLogin:function(){this.$router.push({path:this.redirect||"/"})},getLogin:function(){var e=this;return Object(o["a"])(Object(c["a"])().mark((function t(){var n,r;return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.login();case 2:n=t.sent,r=d.a.get("redirectUri"),r&&"undefined"!==r||(r=""),console.log(r),n&&(r?window.location.href=r:e.$router.push({path:e.redirect||"/"}));case 7:case"end":return t.stop()}}),t)})))()}}),beforeDestroy:function(){clearInterval(this.timer),this.timer=null},mounted:function(){var e=this;d.a.set("isWeChat","1"),this.getLogin(),this.timer=setInterval((function(){e.getLogin()}),2e3)}},h=l,f=(n("3015"),n("2877")),b=Object(f["a"])(h,r,i,!1,null,"c107d002",null);t["default"]=b.exports},d209:function(e,t,n){}}]);

+ 0 - 1
dist/static/js/chunk-61c3a3df.63c998ae.js

@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-61c3a3df"],{"7b0a":function(e,t,n){"use strict";n("b4ca")},"9ed6":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this;e._self._c;return e._m(0)},i=[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"}})])}],c=n("c7eb"),o=n("1da1"),a=n("5530"),u=(n("14d9"),n("2f62")),s=n("852e"),d=n.n(s),l={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(u["b"])({login:"user/login"})),{},{handleLogin:function(){this.$router.push({path:this.redirect||"/"})},getLogin:function(){var e=this;return Object(o["a"])(Object(c["a"])().mark((function t(){var n,r;return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.login();case 2:n=t.sent,r=d.a.get("redirectUri"),r&&"undefined"!==r||(r=""),console.log(r),n&&(r?window.location.href=r:e.$router.push({path:e.redirect||"/"}));case 7: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)}},f=l,h=(n("7b0a"),n("2877")),b=Object(h["a"])(f,r,i,!1,null,"c1960198",null);t["default"]=b.exports},b4ca:function(e,t,n){}}]);

+ 2 - 5
src/permission.js

@@ -39,6 +39,7 @@ router.beforeEach(async(to, from, next) => {
     await store.commit('user/SET_ID', hasToken)
     if (to.path === '/login' || to.path === '/login2') {
       // if is logged in, redirect to the home page
+      store.commit('user/SET_ID', hasToken)
       if (isWeChat === '1') {
         next({ path: '/' })
       } else {
@@ -52,11 +53,7 @@ router.beforeEach(async(to, from, next) => {
       // console.log('to', {...to} )
       if (userinfo) {
         console.log(store)
-        if (isWeChat === '1') {
-          next()
-        } else {
-          next('/appStoreCopy')
-        }
+        next()
       } else {
         try {
           // 获取用户信息

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác