index-legacy.49f77117.js 1.3 KB

1
  1. !function(){function n(n,e,t,r,u,i,c){try{var o=n[i](c),a=o.value}catch(s){return void t(s)}o.done?e(a):Promise.resolve(a).then(r,u)}System.register(["./index-legacy.5d117331.js","./index-legacy.a43798c2.js","./index-legacy.90a437d3.js","./index-legacy.a4c6d705.js"],(function(e){"use strict";var t,r,u,i,c,o,a,s;return{setters:[function(n){t=n.d,r=n.R,u=n.c,i=n.aj,c=n.B,o=n.q,a=n.bc},function(n){s=n.O},function(){},function(){}],execute:function(){e("default",t({name:"test",setup:function(){var e=r(""),t=function(){var t,r=(t=regeneratorRuntime.mark((function n(){var t,r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,a.get("https://dev.kt.colexiu.com/edu-app/open/sysArea/queryAllProvince",{mode:"cors"});case 2:t=n.sent,r=t.data,console.log(r),e.value=JSON.stringify(r);case 6:case"end":return n.stop()}}),n)})),function(){var e=this,r=arguments;return new Promise((function(u,i){var c=t.apply(e,r);function o(e){n(c,u,i,o,a,"next",e)}function a(e){n(c,u,i,o,a,"throw",e)}o(void 0)}))});return function(){return r.apply(this,arguments)}}();return function(){return u("div",null,[u(s,null,{default:function(){return[u(i,{title:"测试接口请求"},null)]}}),u(c,{type:"primary",onClick:t},{default:function(){return[o("请求接口")]}}),u("pre",{style:{fontSize:"16px",padding:"12px"}},[e.value])])}}}))}}}))}();