"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7179],{51129:function(a,t,n){n.d(t,{kS:function(){return d},um:function(){return i},x4:function(){return u}});var s=n(45462),u=function(l){return s.Z.post("/resource/login",l)},d=function(){return s.Z.get("/resource/logout")},i=function(){return s.Z.get("/resource/info")}},16571:function(a,t,n){n.r(t),n.d(t,{default:function(){return y}});var s=n(15009),u=n.n(s),d=n(72082),i=n(13448),o=n(99289),l=n.n(o),p=n(51129),h=n(87547),x=n(94149),c=n(91927),F=n(58066),j={main:"main___FWx6i",icon:"icon___KoJFg",other:"other___dKvtS",register:"register___HxD3M",login:"login___A6iIz",getCaptcha:"getCaptcha___LA9AT",prefixIcon:"prefixIcon___BBBze",submit:"submit___NXNwm"},r=n(86074),y=function(){return(0,r.jsx)("div",{className:j.main,children:(0,r.jsx)("div",{style:{height:"300px"},children:(0,r.jsxs)(c.U0H,{logo:n(66949),title:"Magic-Node",subTitle:"\u63A5\u53E3\u5FEB\u901F\u5F00\u53D1\u5E73\u53F0",onFinish:function(){var A=l()(u()().mark(function f(g){var m,v;return u()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.x4)(g);case 2:if(m=e.sent,v=m.data,!v.success){e.next=8;break}return i.Z.success({message:"\u767B\u5F55\u6210\u529F",description:"\u7528\u6237[".concat(g.username,"]\u6210\u529F"),placement:"bottomRight"}),F.m8.push("/editor"),e.abrupt("return",!0);case 8:return e.abrupt("return",!1);case 9:case"end":return e.stop()}},f)}));return function(f){return A.apply(this,arguments)}}(),children:[(0,r.jsx)(c.VaQ,{name:"username",fieldProps:{size:"large",prefix:(0,r.jsx)(h.Z,{className:"prefixIcon"})},placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7528\u6237\u540D!"}]}),(0,r.jsx)(c.VaQ.Password,{name:"password",fieldProps:{size:"large",prefix:(0,r.jsx)(x.Z,{className:"prefixIcon"})},placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801\uFF01"}]})]})})})}},66949:function(a,t,n){a.exports=n.p+"static/logo.c9452d66.png"}}]);
