index-legacy.ae9695fe.js 1.3 KB

1
  1. !function(){function e(e,n,t,r,u,i,c){try{var o=e[i](c),a=o.value}catch(s){return void t(s)}o.done?n(a):Promise.resolve(a).then(r,u)}System.register(["./index-legacy.5f9666b4.js","./index-legacy.dc9d3f42.js","./index-legacy.812ec873.js","./index-legacy.85e16f70.js"],(function(n){"use strict";var t,r,u,i,c,o,a,s;return{setters:[function(e){t=e.d,r=e.R,u=e.c,i=e.aj,c=e.B,o=e.q,a=e.bc},function(e){s=e.O},function(){},function(){}],execute:function(){n("default",t({name:"test",setup:function(){var n=r(""),t=function(){var t,r=(t=regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.get("https://dev.kt.colexiu.com/edu-app/open/sysArea/queryAllProvince",{mode:"cors"});case 2:t=e.sent,r=t.data,console.log(r),n.value=JSON.stringify(r);case 6:case"end":return e.stop()}}),e)})),function(){var n=this,r=arguments;return new Promise((function(u,i){var c=t.apply(n,r);function o(n){e(c,u,i,o,a,"next",n)}function a(n){e(c,u,i,o,a,"throw",n)}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"}},[n.value])])}}}))}}}))}();