(this.webpackJsonpfronted=this.webpackJsonpfronted||[]).push([[0],{268:function(t,e,n){"use strict";n.r(e);var a=n(7),o=n.n(a),i=n(27),c=n.n(i),s=(n(32),n(33),n(12)),r=n.n(s),d=n(13),u=n(3),l="http://wanzq.vaiwan.com";d.ready((function(){d.runtime.permission.requestAuthCode({corpId:"ding9f50b15bccd16741",onSuccess:function(t){alert(JSON.stringify(t)),r.a.get(l+"/login?authCode="+t.code).then((function(t){alert(JSON.stringify(t.data.data)),sessionStorage.setItem("userId",t.data.data.userId),sessionStorage.setItem("deptId",t.data.data.deptIdList[0])})).catch((function(t){alert(JSON.stringify(t))}))},onFail:function(t){alert(JSON.stringify(t))}})}));var f=function(){return Object(u.jsx)("div",{className:"App",children:Object(u.jsx)("header",{className:"App-header",children:Object(u.jsx)("button",{onClick:function(){r()({url:l+"/process/instance",method:"post",data:{detailForms:[{textForms:[{name:"\u7269\u54c1\u540d\u79f0",value:"\u6d4b\u8bd5\u7269\u54c1\u9886\u7528-\u7535\u8111"},{name:"\u6570\u91cf",value:"3"}],name:"\u7269\u54c1\u660e\u7ec6"}],originatorUserId:"043217290519980938",textForms:[{name:"\u7269\u54c1\u7528\u9014",value:"\u6d4b\u8bd5\u7269\u54c1\u9886\u7528"},{name:"\u9886\u7528\u8be6\u60c5",value:"\u9886\u7528\u8be6\u60c51"}],deptId:1},headers:{"Content-Type":"application/json"}}).then((function(t){console.log(t)})).catch((function(t){console.log(t)}))},children:"\u9886\u7528\u5e76\u63d0\u4ea4\u5ba1\u6279"})})})},h=function(t){t&&t instanceof Function&&n.e(3).then(n.bind(null,269)).then((function(e){var n=e.getCLS,a=e.getFID,o=e.getFCP,i=e.getLCP,c=e.getTTFB;n(t),a(t),o(t),i(t),c(t)}))};c.a.render(Object(u.jsx)(o.a.StrictMode,{children:Object(u.jsx)(f,{})}),document.getElementById("root")),h()},32:function(t,e,n){},33:function(t,e,n){}},[[268,1,2]]]);
//# sourceMappingURL=main.add2e128.chunk.js.map