(function(e){function t(t){for(var n,o,i=t[0],s=t[1],u=t[2],p=0,f=[];p1040")]),a("label",{attrs:{for:"checkbox"}},[e._v("暂不能检测Page内数据变动,是否打开自动刷新: "+e._s(e.checked))]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.checked,expression:"checked"}],attrs:{type:"checkbox",id:"checkbox"},domProps:{checked:Array.isArray(e.checked)?e._i(e.checked,null)>-1:e.checked},on:{click:e.autoRefresh,change:function(t){var a=e.checked,n=t.target,r=!!n.checked;if(Array.isArray(a)){var c=null,o=e._i(a,c);n.checked?o<0&&(e.checked=a.concat([c])):o>-1&&(e.checked=a.slice(0,o).concat(a.slice(o+1)))}else e.checked=r}}}),e._l(e.pages,(function(t){return a("div",{key:t.pageId},[a("h3",[e._v("\n pageId: "+e._s(t.pageId)+", name: "+e._s(t.name)+", path: "+e._s(t.path)+"\n ")]),a("tree-view",{attrs:{data:t.data,options:{rootObjectKey:"data"}}})],1)}))],2)])},c=[],o={data:function(){return{checked:!1,framework:"",checkEvent:void 0,toolkit:""}},computed:{pages:function(){return this.$store.state.pages}},methods:{autoRefresh:function(e){var t=this;e.target.checked?this.checkEvent=setInterval((function(){t.$store.dispatch("getPageData")}),5e3):this.checkEvent&&(clearInterval(this.checkEvent),this.checkEvent=void 0)}},created:function(){this.$store.dispatch("getPageData")}},i=o,s=(a("7faf"),a("2877")),u=Object(s["a"])(i,r,c,!1,null,null,null),d=u.exports,p=(a("6762"),a("2fdb"),a("ac6a"),a("5df3"),a("96cf"),a("3b8d")),f=a("2f62"),l=a("bc3a"),h=a.n(l);n["a"].use(f["a"]);var v=new f["a"].Store({state:{pages:[]},mutations:{setPageData:function(e,t){e.pages=t}},actions:{getPageData:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t){var a,n,r,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.commit,e.next=3,h.a.get("/pages");case 3:if(n=e.sent,r=n.data.pages,!(r.length>0)){e.next=9;break}return c=r.map(function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t,a){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,h.a.request({url:"/runtime",headers:{message:"getPage(".concat(r[a].pageId,").vm._data")}});case 2:n=e.sent,r[a].data=n.data;case 4:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}()),e.next=9,Promise.all(c);case 9:a("setPageData",r);case 10:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()}});window.addEventListener("message",(function(e){e.data&&e.data.method&&e.data.method.includes("Page")&&v.dispatch("getPageData")}),!1);var g=v,m=a("558c"),b=a.n(m);n["a"].use(b.a),n["a"].config.productionTip=!1;var k=/ws=(.*)\/.*/g,y=k.exec(parent.location.search);if(y){var w=y[1];h.a.defaults.baseURL="http://".concat(w)}n["a"].prototype.$http=h.a,new n["a"]({store:g,render:function(e){return e(d)}}).$mount("#app")},"7faf":function(e,t,a){"use strict";var n=a("8fba"),r=a.n(n);r.a},"8fba":function(e,t,a){}}); //# sourceMappingURL=app.js.map