-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path9e0974f9.js
1 lines (1 loc) · 7.8 KB
/
9e0974f9.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{PeeD:function(G,m,a){"use strict";a.r(m);var d=a("XEnU"),p=a("k16G"),h=a("q1tI"),A=a.n(h),u=a("9kvl"),D=a("rlch"),t=a("nKUr"),I=a("SIvP"),y=a("QttV"),N=a("Hx5s"),w=a("rZaO"),q=a("qVdP"),T=a("jsC+"),_=a("T2oS"),W=a("W9HT"),tt=a("Telt"),z=a("Tckk"),et=a("lUTK"),C=a("BvKs"),H=a("aIfO");function L(o,e,l,n){if(o.rightRender)return o.rightRender(l,n,o);var s=Object(t.jsx)(C.a,{className:"umi-plugin-layout-menu",children:Object(t.jsxs)(C.a.Item,{onClick:function(){return o.logout&&(o==null?void 0:o.logout(l))},children:[Object(t.jsx)(H.a,{}),"\u9000\u51FA\u767B\u5F55"]},"logout")}),i=Object(t.jsxs)("span",{className:"umi-plugin-layout-action",children:[Object(t.jsx)(z.a,{size:"small",className:"umi-plugin-layout-avatar",src:l&&l.avatar||"https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png",alt:"avatar"}),Object(t.jsx)("span",{className:"umi-plugin-layout-name",children:l&&l.name})]});return e?Object(t.jsx)("div",{className:"umi-plugin-layout-right",children:Object(t.jsx)(W.a,{size:"small",style:{marginLeft:8,marginRight:8}})}):l&&Object(t.jsxs)("div",{className:"umi-plugin-layout-right anticon",children:[o.logout?Object(t.jsx)(T.a,{overlay:s,overlayClassName:"umi-plugin-layout-container",children:i}):i,u.b&&Object(t.jsx)(u.b,{})]})}var nt=a("J+/v"),F=a("MoRW"),at=a("+L6B"),R=a("2/Rp");function E(){u.d.push("/")}var K=function(){return Object(t.jsx)(F.a,{status:"404",title:"404",subTitle:"\u62B1\u6B49\uFF0C\u4F60\u8BBF\u95EE\u7684\u9875\u9762\u4E0D\u5B58\u5728",extra:Object(t.jsx)(R.a,{type:"primary",onClick:E,children:"\u8FD4\u56DE\u9996\u9875"})})},U=function(){return Object(t.jsx)(F.a,{status:"403",title:"403",subTitle:"\u62B1\u6B49\uFF0C\u4F60\u65E0\u6743\u8BBF\u95EE\u8BE5\u9875\u9762",extra:Object(t.jsx)(R.a,{type:"primary",onClick:E,children:"\u8FD4\u56DE\u9996\u9875"})})},P=function(e){var l=e.children,n=e.currentPathConfig;return n?n.unAccessible||n.unaccessible?e.unAccessible||Object(t.jsx)(U,{}):l:e.noFound||Object(t.jsx)(K,{})},B=a("GOef"),V=function(){return Object(t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 200 200",children:[Object(t.jsxs)("defs",{children:[Object(t.jsxs)("linearGradient",{id:"linearGradient-1",x1:"62.102%",x2:"108.197%",y1:"0%",y2:"37.864%",children:[Object(t.jsx)("stop",{offset:"0%",stopColor:"#4285EB"}),Object(t.jsx)("stop",{offset:"100%",stopColor:"#2EC7FF"})]}),Object(t.jsxs)("linearGradient",{id:"linearGradient-2",x1:"69.644%",x2:"54.043%",y1:"0%",y2:"108.457%",children:[Object(t.jsx)("stop",{offset:"0%",stopColor:"#29CDFF"}),Object(t.jsx)("stop",{offset:"37.86%",stopColor:"#148EFF"}),Object(t.jsx)("stop",{offset:"100%",stopColor:"#0A60FF"})]}),Object(t.jsxs)("linearGradient",{id:"linearGradient-3",x1:"69.691%",x2:"16.723%",y1:"-12.974%",y2:"117.391%",children:[Object(t.jsx)("stop",{offset:"0%",stopColor:"#FA816E"}),Object(t.jsx)("stop",{offset:"41.473%",stopColor:"#F74A5C"}),Object(t.jsx)("stop",{offset:"100%",stopColor:"#F51D2C"})]}),Object(t.jsxs)("linearGradient",{id:"linearGradient-4",x1:"68.128%",x2:"30.44%",y1:"-35.691%",y2:"114.943%",children:[Object(t.jsx)("stop",{offset:"0%",stopColor:"#FA8E7D"}),Object(t.jsx)("stop",{offset:"51.264%",stopColor:"#F74A5C"}),Object(t.jsx)("stop",{offset:"100%",stopColor:"#F51D2C"})]})]}),Object(t.jsx)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:Object(t.jsx)("g",{transform:"translate(-20 -20)",children:Object(t.jsx)("g",{transform:"translate(20 20)",children:Object(t.jsxs)("g",{children:[Object(t.jsxs)("g",{fillRule:"nonzero",children:[Object(t.jsxs)("g",{children:[Object(t.jsx)("path",{fill:"url(#linearGradient-1)",d:"M91.588 4.177L4.18 91.513a11.981 11.981 0 000 16.974l87.408 87.336a12.005 12.005 0 0016.989 0l36.648-36.618c4.209-4.205 4.209-11.023 0-15.228-4.208-4.205-11.031-4.205-15.24 0l-27.783 27.76c-1.17 1.169-2.945 1.169-4.114 0l-69.802-69.744c-1.17-1.169-1.17-2.942 0-4.11l69.802-69.745c1.17-1.169 2.944-1.169 4.114 0l27.783 27.76c4.209 4.205 11.032 4.205 15.24 0 4.209-4.205 4.209-11.022 0-15.227L108.581 4.056c-4.719-4.594-12.312-4.557-16.993.12z"}),Object(t.jsx)("path",{fill:"url(#linearGradient-2)",d:"M91.588 4.177L4.18 91.513a11.981 11.981 0 000 16.974l87.408 87.336a12.005 12.005 0 0016.989 0l36.648-36.618c4.209-4.205 4.209-11.023 0-15.228-4.208-4.205-11.031-4.205-15.24 0l-27.783 27.76c-1.17 1.169-2.945 1.169-4.114 0l-69.802-69.744c-1.17-1.169-1.17-2.942 0-4.11l69.802-69.745c2.912-2.51 7.664-7.596 14.642-8.786 5.186-.883 10.855 1.062 17.009 5.837L108.58 4.056c-4.719-4.594-12.312-4.557-16.993.12z"})]}),Object(t.jsx)("path",{fill:"url(#linearGradient-3)",d:"M153.686 135.855c4.208 4.205 11.031 4.205 15.24 0l27.034-27.012c4.7-4.696 4.7-12.28 0-16.974l-27.27-27.15c-4.218-4.2-11.043-4.195-15.254.013-4.209 4.205-4.209 11.022 0 15.227l18.418 18.403c1.17 1.169 1.17 2.943 0 4.111l-18.168 18.154c-4.209 4.205-4.209 11.023 0 15.228z"})]}),Object(t.jsx)("ellipse",{cx:"100.519",cy:"100.437",fill:"url(#linearGradient-4)",rx:"23.6",ry:"23.581"})]})})})})]})},$=V,J=function(e){var l,n,s,i={};return(e==null?void 0:e.hideFooter)&&(i.footerRender=!1),(e==null?void 0:e.layout)==!1?(i.pure=!0,i):((e==null||(l=e.layout)===null||l===void 0?void 0:l.hideMenu)&&(i.menuRender=!1),(e==null||(n=e.layout)===null||n===void 0?void 0:n.hideFooter)&&(i.footerRender=!1),(e==null||(s=e.layout)===null||s===void 0?void 0:s.hideNav)&&(i.headerRender=!1),i)},X=function(e){var l=e.children,n=e.userConfig,s=e.location,i=e.route,O=Object(I.a)(e,["children","userConfig","location","route"]),j=u.h&&Object(u.h)("@@initialState")||{initialState:void 0,loading:!1,setInitialState:null},g=j.initialState,f=j.loading,b=j.setInitialState,Q=Object(h.useState)({}),S=Object(p.a)(Q,2),M=S[0],Y=S[1];Object(h.useEffect)(function(){var c,r=Object(B.c)((e==null||(c=e.route)===null||c===void 0?void 0:c.routes)||[],void 0,void 0,!0),x=r.menuData,k=Object(B.b)(s.pathname,x).pop();Y(k||{})},[s.pathname]);var v=Object(d.a)(Object(d.a)(Object(d.a)({itemRender:function(r){return Object(t.jsx)(y.a,{to:r.path,children:r.breadcrumbName})}},n),O),J(M));return Object(t.jsx)(N.b,Object(d.a)(Object(d.a)({route:i,location:s,title:n.name||n.title,className:"umi-plugin-layout-main",navTheme:"dark",siderWidth:256,onMenuHeaderClick:function(r){r.stopPropagation(),r.preventDefault(),u.d.push("/")},menu:{locale:n.locale},menuDataRender:n.patchMenus?function(c){return n.patchMenus(c,j)}:void 0,formatMessage:n.formatMessage,logo:$,menuItemRender:function(r,x){return r.isUrl||r.children?x:r.path&&s.pathname!==r.path?Object(t.jsx)(y.a,{to:r.path,children:x}):x},disableContentMargin:!0,fixSiderbar:!0,fixedHeader:!0},v),{},{rightContentRender:(v==null?void 0:v.rightContentRender)!==!1&&function(c){var r=L(n,f,g,b);return v.rightContentRender?v.rightContentRender(c,r,{userConfig:n,loading:f,initialState:g,setInitialState:b}):r},children:Object(t.jsx)(P,{noFound:n==null?void 0:n.noFound,unAccessible:n==null?void 0:n.unAccessible,currentPathConfig:M,children:n.childrenRender?n.childrenRender(l):l})}))},Z=X,lt=m.default=function(o){var e=Object(h.useState)(null),l=Object(p.a)(e,2),n=l[0],s=l[1],i=u.h&&Object(u.h)("@@initialState")||{initialState:void 0,loading:!1,setInitialState:null};Object(h.useEffect)(function(){var f=u.e.applyPlugins({key:"layout",type:D.ApplyPluginsType.modify,initialValue:i})||{};if(f instanceof Promise){f.then(function(b){s(b)});return}s(f)},[i==null?void 0:i.initialState]);var O=Object(d.a)(Object(d.a)({},{name:"ant-design-pro",theme:"PRO",locale:!0,showBreadcrumb:!0,siderWidth:208,navTheme:"light",primaryColor:"#1890ff",layout:"mix",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,colorWeak:!1,title:"Ant Design Pro",pwa:!1,logo:"https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg",iconfontUrl:""}),n||{}),j=Object(u.g)(),g=j.formatMessage;return n?A.a.createElement(Z,Object(d.a)({userConfig:O,formatMessage:g},o)):null}},rZaO:function(G,m,a){}}]);