12 |
- (function(e){function n(n){for(var c,a,o=n[0],i=n[1],h=n[2],f=0,d=[];f<o.length;f++)a=o[f],Object.prototype.hasOwnProperty.call(u,a)&&u[a]&&d.push(u[a][0]),u[a]=0;for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&(e[c]=i[c]);b&&b(n);while(d.length)d.shift()();return r.push.apply(r,h||[]),t()}function t(){for(var e,n=0;n<r.length;n++){for(var t=r[n],c=!0,a=1;a<t.length;a++){var o=t[a];0!==u[o]&&(c=!1)}c&&(r.splice(n--,1),e=i(i.s=t[0]))}return e}var c={},a={app:0},u={app:0},r=[];function o(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-0669d765":"a16fb41b","chunk-0e9b794e":"49941033","chunk-15fe3368":"2a92da13","chunk-2d0cf360":"4520d533","chunk-2d230678":"463c6d06","chunk-38b8bbf0":"fa9cc9ea","chunk-3598bb8e":"522b842b","chunk-41663f4a":"2d84b1bb","chunk-43c0bac2":"24e3746a","chunk-4c3a7980":"a154b8b1","chunk-5d8102d7":"b5bcee94","chunk-65ab3b26":"91bcca37","chunk-714a3a3e":"ebab03ef","chunk-d96549d4":"2fb2fcb9","chunk-f0d2e2d8":"5696c309","chunk-23512534":"97f5b24d","chunk-bb74f086":"9764cb32","chunk-a7b27434":"4a1ec257","chunk-f9977b4e":"f843840f","chunk-d65843ba":"6300c8da","chunk-5748d174":"74bddecb","chunk-c12b3174":"471a4fa0","chunk-10d9407b":"7df94295","chunk-50bf5053":"62091fb1","chunk-babe08ce":"72cd0fd5","chunk-5a16cec2":"7f551007","chunk-23d18d38":"a719be06","chunk-582103c7":"85207b8a","chunk-a6f0a4e8":"765dc835","chunk-bfb841d2":"0e066c92","chunk-dffaa718":"9966333e","chunk-5966c4d7":"ef5ba5ea","chunk-5c03352c":"800d2415","chunk-6cbdbffc":"3b188486","chunk-f4c77f1e":"09bd8126","chunk-11d7e5e0":"4354d247","chunk-0b9a8692":"b800cdba","chunk-09e5b99e":"24a7cedc"}[e]+".js"}function i(n){if(c[n])return c[n].exports;var t=c[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var n=[],t={"chunk-0669d765":1,"chunk-0e9b794e":1,"chunk-15fe3368":1,"chunk-3598bb8e":1,"chunk-41663f4a":1,"chunk-43c0bac2":1,"chunk-4c3a7980":1,"chunk-5d8102d7":1,"chunk-65ab3b26":1,"chunk-714a3a3e":1,"chunk-d96549d4":1,"chunk-f0d2e2d8":1,"chunk-23512534":1,"chunk-bb74f086":1,"chunk-a7b27434":1,"chunk-f9977b4e":1,"chunk-d65843ba":1,"chunk-5748d174":1,"chunk-c12b3174":1,"chunk-10d9407b":1,"chunk-babe08ce":1,"chunk-5a16cec2":1,"chunk-23d18d38":1,"chunk-582103c7":1,"chunk-a6f0a4e8":1,"chunk-bfb841d2":1,"chunk-dffaa718":1,"chunk-5966c4d7":1,"chunk-5c03352c":1,"chunk-6cbdbffc":1,"chunk-f4c77f1e":1,"chunk-11d7e5e0":1,"chunk-0b9a8692":1,"chunk-09e5b99e":1};a[e]?n.push(a[e]):0!==a[e]&&t[e]&&n.push(a[e]=new Promise((function(n,t){for(var c="css/"+({}[e]||e)+"."+{"chunk-0669d765":"e3f50608","chunk-0e9b794e":"fc9817e3","chunk-15fe3368":"626ef987","chunk-2d0cf360":"31d6cfe0","chunk-2d230678":"31d6cfe0","chunk-38b8bbf0":"31d6cfe0","chunk-3598bb8e":"6270f6ce","chunk-41663f4a":"3b002dfa","chunk-43c0bac2":"432af0a1","chunk-4c3a7980":"75bb9020","chunk-5d8102d7":"32997b36","chunk-65ab3b26":"97830b25","chunk-714a3a3e":"c7c001c1","chunk-d96549d4":"3c0d753f","chunk-f0d2e2d8":"95061155","chunk-23512534":"f5357a65","chunk-bb74f086":"a0a79b70","chunk-a7b27434":"4bc6a133","chunk-f9977b4e":"3ca5ce82","chunk-d65843ba":"8cd93ced","chunk-5748d174":"719de395","chunk-c12b3174":"3fa1091a","chunk-10d9407b":"769d5412","chunk-50bf5053":"31d6cfe0","chunk-babe08ce":"9f382803","chunk-5a16cec2":"9f382803","chunk-23d18d38":"4588d2ad","chunk-582103c7":"cd1d307f","chunk-a6f0a4e8":"4bd731ac","chunk-bfb841d2":"81010485","chunk-dffaa718":"cda26ee6","chunk-5966c4d7":"3cf3624c","chunk-5c03352c":"14dd70ff","chunk-6cbdbffc":"1c21ddcf","chunk-f4c77f1e":"00f8fdef","chunk-11d7e5e0":"a217e4e9","chunk-0b9a8692":"eb49efda","chunk-09e5b99e":"ad48c20d"}[e]+".css",u=i.p+c,r=document.getElementsByTagName("link"),o=0;o<r.length;o++){var h=r[o],f=h.getAttribute("data-href")||h.getAttribute("href");if("stylesheet"===h.rel&&(f===c||f===u))return n()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){h=d[o],f=h.getAttribute("data-href");if(f===c||f===u)return n()}var b=document.createElement("link");b.rel="stylesheet",b.type="text/css",b.onload=n,b.onerror=function(n){var c=n&&n.target&&n.target.src||u,r=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");r.code="CSS_CHUNK_LOAD_FAILED",r.request=c,delete a[e],b.parentNode.removeChild(b),t(r)},b.href=u;var l=document.getElementsByTagName("head")[0];l.appendChild(b)})).then((function(){a[e]=0})));var c=u[e];if(0!==c)if(c)n.push(c[2]);else{var r=new Promise((function(n,t){c=u[e]=[n,t]}));n.push(c[2]=r);var h,f=document.createElement("script");f.charset="utf-8",f.timeout=120,i.nc&&f.setAttribute("nonce",i.nc),f.src=o(e);var d=new Error;h=function(n){f.onerror=f.onload=null,clearTimeout(b);var t=u[e];if(0!==t){if(t){var c=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;d.message="Loading chunk "+e+" failed.\n("+c+": "+a+")",d.name="ChunkLoadError",d.type=c,d.request=a,t[1](d)}u[e]=void 0}};var b=setTimeout((function(){h({type:"timeout",target:f})}),12e4);f.onerror=f.onload=h,document.head.appendChild(f)}return Promise.all(n)},i.m=e,i.c=c,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var c in e)i.d(t,c,function(n){return e[n]}.bind(null,c));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="",i.oe=function(e){throw console.error(e),e};var h=window["webpackJsonp"]=window["webpackJsonp"]||[],f=h.push.bind(h);h.push=n,h=h.slice();for(var d=0;d<h.length;d++)n(h[d]);var b=f;r.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){e.exports=t("56d7")},2395:function(e,n,t){},"56d7":function(e,n,t){"use strict";t.r(n);t("e260"),t("e6cf"),t("cca6"),t("a79d");var c=t("2b0e"),a=(t("d3b7"),t("bc3a")),u=t.n(a);u.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded";var r={baseURL:"http://192.168.2.45:2727"},o=u.a.create(r);o.interceptors.request.use((function(e){return e}),(function(e){return Promise.reject(e)})),o.interceptors.response.use((function(e){return e}),(function(e){return Promise.reject(e)})),Plugin.install=function(e,n){e.axios=o,window.axios=o,Object.defineProperties(e.prototype,{axios:{get:function(){return o}},$axios:{get:function(){return o}}})},c["default"].use(Plugin);Plugin;var i=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},h=[],f=(t("7c55"),t("2877")),d={},b=Object(f["a"])(d,i,h,!1,null,null,null),l=b.exports,k=(t("3ca3"),t("ddb0"),t("8c4f")),s=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("Basic",[t("div",{staticClass:"home"},[t("el-tabs",{on:{"tab-click":e.RouterLink},model:{value:e.activeName,callback:function(n){e.activeName=n},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"首页",name:"0"}}),t("el-tab-pane",{attrs:{label:"知识库",name:"1"}}),t("el-tab-pane",{attrs:{label:"习题练习",name:"2"}}),t("el-tab-pane",{attrs:{label:"模拟考试",name:"3"}}),t("el-tab-pane",{attrs:{label:"正式考试",name:"4"}}),t("el-tab-pane",{attrs:{label:"考试记录",name:"5"}}),t("el-tab-pane",{attrs:{label:"错题集",name:"6"}})],1),t("div",{staticClass:"content"},[t("keep-alive",[e.$route.meta.keepAlive?t("router-view"):e._e()],1),e.$route.meta.keepAlive?e._e():t("router-view")],1)],1)])},m=[],p=(t("ac1f"),t("5319"),t("25f0"),function(){return t.e("chunk-714a3a3e").then(t.bind(null,"d5a2"))}),v={components:{Basic:p},data:function(){return{activeName:"0",routers:["/","/knowledgebase","/practice","/mockexamination","/formalexamination","/examinationrecord","/wrongquestion"]}},methods:{RouterLink:function(){var e=this.routers,n=this.$route.path;if(n==e[this.activeName])return!1;this.$router.replace(e[this.activeName])}},created:function(){var e=this.routers,n=this.$route.path;this.activeName=e.indexOf(n).toString()},watch:{$route:function(e,n){var t=this.routers,c=e.path;this.activeName=t.indexOf(c).toString()}}},g=v,w=Object(f["a"])(g,s,m,!1,null,null,null),x=w.exports;c["default"].use(k["a"]);var y=[{path:"/",name:"Home",component:x,meta:{title:"列表页面"},children:[{path:"",name:"Index",component:function(){return t.e("chunk-15fe3368").then(t.bind(null,"2a14"))},meta:{keepAlive:!0,title:"首页"}},{path:"knowledgebase",name:"knowledgebase",component:function(){return t.e("chunk-65ab3b26").then(t.bind(null,"fcdb"))},meta:{title:"知识库"}},{path:"practice",name:"practice",component:function(){return t.e("chunk-2d230678").then(t.bind(null,"ebaf"))},meta:{title:"习题练习"}},{path:"examinationrecord",name:"examinationrecord",component:function(){return t.e("chunk-2d0cf360").then(t.bind(null,"636c"))},meta:{title:"考试记录"}},{path:"formalexamination",name:"formalexamination",component:function(){return t.e("chunk-d96549d4").then(t.bind(null,"67bd"))},meta:{title:"正式考试"}},{path:"mockexamination",name:"mockexamination",component:function(){return Promise.all([t.e("chunk-38b8bbf0"),t.e("chunk-4c3a7980")]).then(t.bind(null,"5b2d"))},meta:{title:"模拟考试"}},{path:"wrongquestion",name:"wrongquestion",component:function(){return Promise.all([t.e("chunk-38b8bbf0"),t.e("chunk-5d8102d7")]).then(t.bind(null,"06f5"))},meta:{title:"错题集"}}]},{path:"/mocktestreport",name:"Mocktestreport",component:function(){return t.e("chunk-f0d2e2d8").then(t.bind(null,"8c43"))},meta:{title:"考试报告"}},{path:"/exam",name:"Exam",component:function(){return Promise.all([t.e("chunk-38b8bbf0"),t.e("chunk-41663f4a")]).then(t.bind(null,"7eeb"))},meta:{title:"习题练习页面"}},{path:"/mockexam",name:"Mockexam",component:function(){return Promise.all([t.e("chunk-38b8bbf0"),t.e("chunk-43c0bac2")]).then(t.bind(null,"5490"))},meta:{title:"模拟考试考试页面"}},{path:"/formalexam",name:"Formalexam",component:function(){return Promise.all([t.e("chunk-38b8bbf0"),t.e("chunk-3598bb8e")]).then(t.bind(null,"7838"))},meta:{title:"正式考试考试页面"}},{path:"/login",name:"Login",component:function(){return t.e("chunk-0669d765").then(t.bind(null,"d9c9"))},meta:{title:"登录页面"}},{path:"*",name:"404",component:function(){return t.e("chunk-0e9b794e").then(t.bind(null,"3d4b"))},meta:{title:"404"}}],P=new k["a"]({routes:y});P.beforeEach((function(e,n,t){var c=sessionStorage.getItem("token");"/login"==e.path||c||t({path:"/login"}),t()}));var O=P,j=t("2f62");c["default"].use(j["a"]);var _=new j["a"].Store({state:{},mutations:{},actions:{},modules:{}}),E=t("5c96"),N=t.n(E),S=(t("0fae"),t("3f08"));c["default"].use(N.a),c["default"].use(S["a"].Plugin),c["default"].config.productionTip=!1,new c["default"]({router:O,store:_,render:function(e){return e(l)}}).$mount("#app")},"7c55":function(e,n,t){"use strict";t("2395")}});
- //# sourceMappingURL=app.c18838bd.js.map
|