mirror of
https://gitee.com/270580156/weiyu.git
synced 2025-12-30 10:52:26 +00:00
1 line
8.0 KiB
JavaScript
1 line
8.0 KiB
JavaScript
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6301],{84439:function(t,e,i){i.r(e),i.d(e,{default:function(){return G}});var n=i(45332),l=i.n(n),r=i(76711),a=i.n(r),o=i(73193),s=i.n(o),u=i(86222),d=i.n(u),c=i(14870),h=i(44194),f=i(79399),p=i(31549),g=function(){return(0,p.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 200 200",children:[(0,p.jsxs)("defs",{children:[(0,p.jsxs)("linearGradient",{id:"linearGradient-1",x1:"62.102%",x2:"108.197%",y1:"0%",y2:"37.864%",children:[(0,p.jsx)("stop",{offset:"0%",stopColor:"#4285EB"}),(0,p.jsx)("stop",{offset:"100%",stopColor:"#2EC7FF"})]}),(0,p.jsxs)("linearGradient",{id:"linearGradient-2",x1:"69.644%",x2:"54.043%",y1:"0%",y2:"108.457%",children:[(0,p.jsx)("stop",{offset:"0%",stopColor:"#29CDFF"}),(0,p.jsx)("stop",{offset:"37.86%",stopColor:"#148EFF"}),(0,p.jsx)("stop",{offset:"100%",stopColor:"#0A60FF"})]}),(0,p.jsxs)("linearGradient",{id:"linearGradient-3",x1:"69.691%",x2:"16.723%",y1:"-12.974%",y2:"117.391%",children:[(0,p.jsx)("stop",{offset:"0%",stopColor:"#FA816E"}),(0,p.jsx)("stop",{offset:"41.473%",stopColor:"#F74A5C"}),(0,p.jsx)("stop",{offset:"100%",stopColor:"#F51D2C"})]}),(0,p.jsxs)("linearGradient",{id:"linearGradient-4",x1:"68.128%",x2:"30.44%",y1:"-35.691%",y2:"114.943%",children:[(0,p.jsx)("stop",{offset:"0%",stopColor:"#FA8E7D"}),(0,p.jsx)("stop",{offset:"51.264%",stopColor:"#F74A5C"}),(0,p.jsx)("stop",{offset:"100%",stopColor:"#F51D2C"})]})]}),(0,p.jsx)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:(0,p.jsx)("g",{transform:"translate(-20 -20)",children:(0,p.jsx)("g",{transform:"translate(20 20)",children:(0,p.jsxs)("g",{children:[(0,p.jsxs)("g",{fillRule:"nonzero",children:[(0,p.jsxs)("g",{children:[(0,p.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"}),(0,p.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"})]}),(0,p.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"})]}),(0,p.jsx)("ellipse",{cx:"100.519",cy:"100.437",fill:"url(#linearGradient-4)",rx:"23.6",ry:"23.581"})]})})})})]})},x=i(24582),m=i(5780),v=function(t){var e,i;return!t.route&&(t.noFound||t.notFound)||(null===(e=t.route)||void 0===e?void 0:e.unaccessible)&&(t.unAccessible||t.noAccessible)||(!t.route||(null===(i=t.route)||void 0===i?void 0:i.unaccessible))&&(0,p.jsx)(x.ZP,{status:t.route?"403":"404",title:t.route?"403":"404",subTitle:t.route?"抱歉,你无权访问该页面":"抱歉,你访问的页面不存在",extra:(0,p.jsx)(m.ZP,{type:"primary",onClick:function(){return c.history.push("/")},children:"返回首页"})})||t.children},y=i(45681),j=i(53504),C=i(84658),F=i(52620),k=i(78359),A=i(15600),b=i(19726);var S=i(43046),R=i(48171),M=function t(e,i){if(0===e.length)return[];var n,l=[],r=d()(e);try{for(r.s();!(n=r.n()).done;){var o=n.value,u=s()({},o);i(o)?Array.isArray(u.routes)&&l.push.apply(l,a()(t(u.routes,i))):(Array.isArray(u.children)&&(u.children=t(u.children,i),u.routes=u.children),l.push(u))}}catch(t){r.e(t)}finally{r.f()}return l},Z=function t(e){return 0===e.length?[]:e.map((function(e){var i=s()({},e);return e.originPath&&(i.path=e.originPath),Array.isArray(e.routes)&&(i.routes=t(e.routes)),Array.isArray(e.children)&&(i.children=t(e.children)),i}))},G=function(t){var e=(0,c.useLocation)(),i=(0,c.useNavigate)(),n=(0,c.useAppData)(),r=n.clientRoutes,a=n.pluginManager,o=S.t&&(0,S.t)("@@initialState")||{initialState:void 0,loading:!1,setInitialState:null},u=o.initialState,d=o.loading,x=o.setInitialState,m={locale:!0,navTheme:"light",collapsed:!1,layout:"mix",contentWidth:"Fluid",siderWidth:160,fixedHeader:!1,fixSiderbar:!0,colorWeak:!1,pwa:!0,token:{},splitMenus:!1,siderMenuType:"sub"},G=(0,b.YB)().formatMessage,N=a.applyPlugins({key:"layout",type:"modify",initialValue:s()({},o)}),w=M(r.filter((function(t){return"ant-design-pro-layout"===t.id})),(function(t){return!!t.isLayout&&"ant-design-pro-layout"!==t.id||!!t.isWrapper})),L=(0,R.Mf)(Z(w)),W=l()(L,1)[0],z=(0,h.useMemo)((function(){var t,i;return null===(t=(0,c.matchRoutes)(W.children,e.pathname))||void 0===t||null===(i=t.pop)||void 0===i||null===(i=i.call(t))||void 0===i?void 0:i.route}),[e.pathname]);return(0,p.jsx)(f.f,s()(s()({route:W,location:e,title:m.title||"admin",navTheme:"dark",siderWidth:256,onMenuHeaderClick:function(t){t.stopPropagation(),t.preventDefault(),i("/")},formatMessage:m.formatMessage||G,menu:{locale:m.locale},logo:g,menuItemRender:function(t,i){return t.isUrl||t.children?i:t.path&&e.pathname!==t.path?(0,p.jsx)(c.Link,{to:t.path.replace("/*",""),target:t.target,children:i}):i},itemRender:function(t,e,i){var n=t.breadcrumbName,l=t.title,r=t.path,a=l||n,o=i[i.length-1];return!o||o.path!==r&&o.linkPath!==r?(0,p.jsx)(c.Link,{to:r,children:a}):(0,p.jsx)("span",{children:a})},disableContentMargin:!0,fixSiderbar:!0,fixedHeader:!0},N),{},{rightContentRender:!1!==N.rightContentRender&&function(t){var e=function(t){var e,i,n,l,r;if(t.runtimeConfig.rightRender)return t.runtimeConfig.rightRender(t.initialState,t.setInitialState,t.runtimeConfig);var a=(null===(e=t.initialState)||void 0===e?void 0:e.avatar)||(null===(i=t.initialState)||void 0===i?void 0:i.name)||t.runtimeConfig.logout,o=!1===(null===(n=t.initialState)||void 0===n?void 0:n.avatar),u=o?"umi-plugin-layout-name umi-plugin-layout-hide-avatar-img":"umi-plugin-layout-name",d=a?(0,p.jsxs)("span",{className:"umi-plugin-layout-action",children:[o?null:(0,p.jsx)(y.Z,{size:"small",className:"umi-plugin-layout-avatar",src:(null===(l=t.initialState)||void 0===l?void 0:l.avatar)||"https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png",alt:"avatar"}),(0,p.jsx)("span",{className:u,children:null===(r=t.initialState)||void 0===r?void 0:r.name})]}):null;if(t.loading)return(0,p.jsx)("div",{className:"umi-plugin-layout-right",children:(0,p.jsx)(j.Z,{size:"small",style:{marginLeft:8,marginRight:8}})});var c,h={className:"umi-plugin-layout-menu",selectedKeys:[],items:[{key:"logout",label:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(A.Z,{}),"退出登录"]}),onClick:function(){var e,i;null==t||null===(e=t.runtimeConfig)||void 0===e||null===(i=e.logout)||void 0===i||i.call(e,t.initialState)}}]};return c=C.Z.startsWith("5.")||C.Z.startsWith("4.24.")?{menu:h}:C.Z.startsWith("3.")?{overlay:(0,p.jsx)(F.Z,{children:h.items.map((function(t){return(0,p.jsx)(F.Z.Item,{onClick:t.onClick,children:t.label},t.key)}))})}:{overlay:(0,p.jsx)(F.Z,s()({},h))},(0,p.jsxs)("div",{className:"umi-plugin-layout-right anticon",children:[t.runtimeConfig.logout?(0,p.jsx)(k.Z,s()(s()({},c),{},{overlayClassName:"umi-plugin-layout-container",children:d})):d,(0,p.jsx)(b.pD,{})]})}({runtimeConfig:N,loading:d,initialState:u,setInitialState:x});return N.rightContentRender?N.rightContentRender(t,e,{userConfig:m,runtimeConfig:N,loading:d,initialState:u,setInitialState:x}):e},children:(0,p.jsx)(v,{route:z,noFound:null==N?void 0:N.noFound,notFound:null==N?void 0:N.notFound,unAccessible:null==N?void 0:N.unAccessible,noAccessible:null==N?void 0:N.noAccessible,children:N.childrenRender?N.childrenRender((0,p.jsx)(c.Outlet,{}),t):(0,p.jsx)(c.Outlet,{})})}))}}}]); |