lsc 2 gadi atpakaļ
vecāks
revīzija
84b2948dee

+ 4 - 4
babel.config.js

@@ -1,5 +1,5 @@
 // 获取 VUE_APP_ENV 非 NODE_ENV,测试环境依然 console
-const IS_PROD = ['production', 'prod'].includes(process.env.VUE_APP_ENV)
+// const IS_PROD = ['production', 'prod'].includes(process.env.VUE_APP_ENV)
 const plugins = [
   [
     'import',
@@ -12,9 +12,9 @@ const plugins = [
   ]
 ]
 // 去除 console.log
-if (IS_PROD) {
-  plugins.push('transform-remove-console')
-}
+// if (IS_PROD) {
+//   plugins.push('transform-remove-console')
+// }
 
 module.exports = {
   presets: [['@vue/cli-plugin-babel/preset', { useBuiltIns: 'usage', corejs: 3 }]],

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/index.html


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 1
dist/report.html


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

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

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

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

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/app.2af97d38.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/app.3dc91766.js


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

@@ -0,0 +1 @@
+(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}}]);

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

@@ -1 +0,0 @@
-(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}}]);

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/chunk-f86d6f0a.e0b65e8e.js


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

@@ -43,6 +43,7 @@ export default {
     this.timer = null
   },
   mounted() {
+    this.getLogin()
     this.timer = setInterval(() => {
       this.getLogin()
     }, 2000)

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels