mirror of https://gitee.com/topiam/eiam
pull/9/MERGE
parent
7fd43026da
commit
6e26e221dd
File diff suppressed because one or more lines are too long
|
@ -15,4 +15,4 @@
|
|||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
"use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[2677],{2677:function(e,n,t){t.r(n),t.d(n,{default:function(){return s}});var c=t(79685),u=t(84530),o=t(63342);function s(){var E=(0,u.useOutletContext)();return(0,o.jsx)(u.Outlet,{context:E})}}}]);
|
||||
"use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[4097],{34097:function(e,n,t){t.r(n),t.d(n,{default:function(){return s}});var c=t(79685),u=t(59787),o=t(63342);function s(){var E=(0,u.useOutletContext)();return(0,o.jsx)(u.Outlet,{context:E})}}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -28,6 +28,6 @@
|
|||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script src="/umi.efd105e7.js"></script>
|
||||
<script src="/umi.ec322d93.js"></script>
|
||||
|
||||
</body></html>
|
|
@ -15,4 +15,4 @@
|
|||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
"use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[2571],{66354:function(i,n,t){t.r(n);var s=t(73838),a=t(8821),u=t(84530),o=t(63342),e=function(){return(0,o.jsx)(s.ZP,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:(0,o.jsx)(a.ZP,{type:"primary",onClick:function(){return u.history.push("/")},children:"Back Home"})})};n.default=e}}]);
|
||||
"use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[2571],{98546:function(i,n,t){t.r(n);var s=t(73838),a=t(8821),u=t(59787),o=t(63342),e=function(){return(0,o.jsx)(s.ZP,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:(0,o.jsx)(a.ZP,{type:"primary",onClick:function(){return u.history.push("/")},children:"Back Home"})})};n.default=e}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -15,5 +15,5 @@
|
|||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
"use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[4815],{3723:function(K,y,r){var T=r(5543),u=r(66105),W=r(79685),f=r(57231),j=r(63342),h=["fieldProps","proFieldProps"],O=["fieldProps","proFieldProps"],p="text",v=function(o){var U=o.fieldProps,B=o.proFieldProps,S=(0,u.Z)(o,h);return(0,j.jsx)(f.Z,(0,T.Z)({valueType:p,fieldProps:U,filedConfig:{valueType:p},proFieldProps:B},S))},R=function(o){var U=o.fieldProps,B=o.proFieldProps,S=(0,u.Z)(o,O);return(0,j.jsx)(f.Z,(0,T.Z)({valueType:"password",fieldProps:U,proFieldProps:B,filedConfig:{valueType:p}},S))},F=v;F.Password=R,F.displayName="ProFormComponent",y.Z=F},90233:function(K,y,r){var T=r(5543),u=r(66105),W=r(79685),f=r(57231),j=r(63342),h=["fieldProps","proFieldProps"],O=function(v,R){var F=v.fieldProps,M=v.proFieldProps,o=(0,u.Z)(v,h);return(0,j.jsx)(f.Z,(0,T.Z)({ref:R,valueType:"textarea",fieldProps:F,proFieldProps:M},o))};y.Z=W.forwardRef(O)},36200:function(K,y,r){r.r(y),r.d(y,{default:function(){return or}});var T=r(84019),u=r.n(T),W=r(32061),f=r.n(W),j=r(76091),h=r.n(j),O=r(7863),p=r.n(O),v=r(73237),R=r(81369),F=r(43637),M=r(80591),o=r(82925),U=r(62119),B=r(76815),S=r(8821),$=r(18477),b=r(86977),V=r(18054),G=r(90914),L=r(79685),Q=r(73575),X=r(24766),z=r(3723),Y=r(90233),H=r(54363),J=r(55998),e=r(63342),k={labelCol:{span:4},wrapperCol:{span:19}},w=function(i){var E=(0,J.Z)(),l=p()(E,1),A=l[0],m=i.visible,s=i.onFinish,I=i.onCancel,d=(0,L.useState)(!1),t=p()(d,2),a=t[0],c=t[1];return(0,L.useEffect)(function(){m&&A.setFieldsValue({code:(0,Q.MX)(9)})}),(0,e.jsx)(X.Y,h()(h()({title:"\u65B0\u5EFA\u7528\u6237\u7EC4",form:A,scrollToFirstError:!0},k),{},{layout:"horizontal",labelAlign:"right",preserve:!1,width:"500px",open:m,modalProps:{maskClosable:!0,destroyOnClose:!0,onCancel:I},onFinish:function(){var g=f()(u()().mark(function P(D){var n;return u()().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return c(!0),Z.next=3,s(D);case 3:return n=Z.sent,c(!1),Z.abrupt("return",!!n);case 6:case"end":return Z.stop()}},P)}));return function(P){return g.apply(this,arguments)}}(),children:(0,e.jsxs)(H.Z,{spinning:a,children:[(0,e.jsx)(z.Z,{name:"name",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7EC4\u540D\u79F0",rules:[{required:!0,message:"\u7528\u6237\u7EC4\u540D\u79F0\u4E3A\u5FC5\u586B\u9879"}]}),(0,e.jsx)(z.Z,{name:"code",label:"\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7EC4\u7F16\u7801",rules:[{required:!0,message:"\u7528\u6237\u7EC4\u7F16\u7801\u4E3A\u5FC5\u586B\u9879"}]}),(0,e.jsx)(Y.Z,{name:"remark",fieldProps:{rows:2,maxLength:20,showCount:!0},placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8\u4FE1\u606F",label:"\u5907\u6CE8"})]})}))},q=r(39620),x=r.n(q),_=r(47918),rr=r(84904),er=_.ZP.ConfigContext;function ar(){var i=(0,L.useContext)(er),E=i.getPrefixCls,l=".".concat(E()),A=(0,rr.l)(function(m){var s,I=m.token;return s={},x()(s,".user-group-remark",{boxSizing:"border-box",width:"100%",margin:"0 !important",color:"#00000073",fontSize:"14px"}),x()(s,"".concat(l,"-pro-card-title"),{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",alignItems:"center",display:"inline-flex"}),x()(s,"".concat(l,"-pro-card-extra"),{flex:"none"}),x()(s,"".concat(l,"-pro-card-actions"),x()({},`> li,
|
||||
"use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[4815],{3723:function(K,y,r){var T=r(5543),u=r(66105),W=r(79685),f=r(57231),j=r(63342),h=["fieldProps","proFieldProps"],O=["fieldProps","proFieldProps"],p="text",v=function(o){var U=o.fieldProps,B=o.proFieldProps,S=(0,u.Z)(o,h);return(0,j.jsx)(f.Z,(0,T.Z)({valueType:p,fieldProps:U,filedConfig:{valueType:p},proFieldProps:B},S))},R=function(o){var U=o.fieldProps,B=o.proFieldProps,S=(0,u.Z)(o,O);return(0,j.jsx)(f.Z,(0,T.Z)({valueType:"password",fieldProps:U,proFieldProps:B,filedConfig:{valueType:p}},S))},F=v;F.Password=R,F.displayName="ProFormComponent",y.Z=F},90233:function(K,y,r){var T=r(5543),u=r(66105),W=r(79685),f=r(57231),j=r(63342),h=["fieldProps","proFieldProps"],O=function(v,R){var F=v.fieldProps,M=v.proFieldProps,o=(0,u.Z)(v,h);return(0,j.jsx)(f.Z,(0,T.Z)({ref:R,valueType:"textarea",fieldProps:F,proFieldProps:M},o))};y.Z=W.forwardRef(O)},39068:function(K,y,r){r.r(y),r.d(y,{default:function(){return or}});var T=r(84019),u=r.n(T),W=r(32061),f=r.n(W),j=r(76091),h=r.n(j),O=r(7863),p=r.n(O),v=r(9715),R=r(75109),F=r(43637),M=r(80591),o=r(82925),U=r(62119),B=r(76815),S=r(8821),$=r(18477),b=r(86977),V=r(18054),G=r(90914),L=r(79685),Q=r(7206),X=r(24766),z=r(3723),Y=r(90233),H=r(54363),J=r(55998),e=r(63342),k={labelCol:{span:4},wrapperCol:{span:19}},w=function(i){var E=(0,J.Z)(),l=p()(E,1),A=l[0],m=i.visible,s=i.onFinish,I=i.onCancel,d=(0,L.useState)(!1),t=p()(d,2),a=t[0],c=t[1];return(0,L.useEffect)(function(){m&&A.setFieldsValue({code:(0,Q.MX)(9)})}),(0,e.jsx)(X.Y,h()(h()({title:"\u65B0\u5EFA\u7528\u6237\u7EC4",form:A,scrollToFirstError:!0},k),{},{layout:"horizontal",labelAlign:"right",preserve:!1,width:"500px",open:m,modalProps:{maskClosable:!0,destroyOnClose:!0,onCancel:I},onFinish:function(){var g=f()(u()().mark(function P(D){var n;return u()().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return c(!0),Z.next=3,s(D);case 3:return n=Z.sent,c(!1),Z.abrupt("return",!!n);case 6:case"end":return Z.stop()}},P)}));return function(P){return g.apply(this,arguments)}}(),children:(0,e.jsxs)(H.Z,{spinning:a,children:[(0,e.jsx)(z.Z,{name:"name",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7EC4\u540D\u79F0",rules:[{required:!0,message:"\u7528\u6237\u7EC4\u540D\u79F0\u4E3A\u5FC5\u586B\u9879"}]}),(0,e.jsx)(z.Z,{name:"code",label:"\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7EC4\u7F16\u7801",rules:[{required:!0,message:"\u7528\u6237\u7EC4\u7F16\u7801\u4E3A\u5FC5\u586B\u9879"}]}),(0,e.jsx)(Y.Z,{name:"remark",fieldProps:{rows:2,maxLength:20,showCount:!0},placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8\u4FE1\u606F",label:"\u5907\u6CE8"})]})}))},q=r(39620),x=r.n(q),_=r(47918),rr=r(84904),er=_.ZP.ConfigContext;function ar(){var i=(0,L.useContext)(er),E=i.getPrefixCls,l=".".concat(E()),A=(0,rr.l)(function(m){var s,I=m.token;return s={},x()(s,".user-group-remark",{boxSizing:"border-box",width:"100%",margin:"0 !important",color:"#00000073",fontSize:"14px"}),x()(s,"".concat(l,"-pro-card-title"),{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",alignItems:"center",display:"inline-flex"}),x()(s,"".concat(l,"-pro-card-extra"),{flex:"none"}),x()(s,"".concat(l,"-pro-card-actions"),x()({},`> li,
|
||||
`.concat(l,"-space-item"),{margin:"5px 0"})),x()(s,"".concat(l,"-avatar"),{width:"32px !important",height:"32px !important",marginRight:"10px"}),x()(s,"".concat(l,"-avatar-circle"),{verticalAlign:"middle",backgroundColor:I.colorPrimary}),s});return{className:A}}var nr=r(68591),tr=r.n(nr),sr=B.Z.Paragraph,N=function(E){R.m.push("/account/user-group/detail?id=".concat(E,"&tab=member"))},ur=function(){var i=(0,L.useRef)(),E=(0,L.useState)(!1),l=p()(E,2),A=l[0],m=l[1],s=ar(),I=s.className;return(0,e.jsx)("div",{className:tr()(I),children:(0,e.jsxs)(o._z,{content:"\u7528\u6237\u7EC4\u662F\u7528\u6237\u7684\u96C6\u5408\uFF0C\u5C06\u5177\u6709\u76F8\u540C\u804C\u80FD\u7684\u7528\u6237\u6DFB\u52A0\u5230\u4E00\u8D77\uFF0C\u5373\u5F62\u6210\u7528\u6237\u7EC4\u3002\u5C06\u6743\u9650\u6388\u6743\u5230\u7528\u6237\u7EC4\u540E\uFF0C\u7528\u6237\u7EC4\u5185\u7684\u7528\u6237\u90FD\u5C06\u7EE7\u627F\u8BE5\u6743\u9650\uFF0C\u56E0\u6B64\uFF0C\u7528\u6237\u7EC4\u5341\u5206\u9002\u5408\u7528\u4E8E\u6279\u91CF\u6388\u6743\u3002",children:[(0,e.jsx)(U.Rs,{actionRef:i,showActions:"always",search:{},pagination:{size:"small",defaultPageSize:10,showSizeChanger:!1},rowKey:"id",toolBarRender:function(){return[(0,e.jsxs)(S.ZP,{type:"primary",onClick:function(){m(!0)},children:[(0,e.jsx)(F.Z,{}),"\u65B0\u589E\u7528\u6237\u7EC4"]},"add")]},grid:{gutter:8,xs:1,sm:1,md:3,lg:3,xl:4,xxl:5},headerTitle:"\u7528\u6237\u7EC4\u5217\u8868",form:{syncToUrl:function(t,a){return a==="get"?h()({},t):t}},metas:{title:{dataIndex:"name",title:"\u7528\u6237\u7EC4\u540D\u79F0",render:function(t,a){return(0,e.jsx)($.Z,{placement:"topLeft",title:a.name,children:(0,e.jsx)("a",{onClick:function(){N(a.id)},children:t})})}},avatar:{search:!1,render:function(t,a){return(0,e.jsx)(b.C,{children:a.name.substring(0,1).toLocaleUpperCase()})}},content:{search:!1,dataIndex:"remark",render:function(t,a){return(0,e.jsx)(sr,{className:"user-group-remark",ellipsis:{tooltip:a.remark},title:a.remark,children:a.remark?a.remark:(0,e.jsx)(e.Fragment,{children:"\xA0"})})}},actions:{cardActionProps:"actions",render:function(t,a){return[(0,e.jsx)("a",{onClick:function(){N(a.id)},children:"\u8BE6\u60C5"},"member"),(0,e.jsx)(V.Z,{title:"\u60A8\u786E\u5B9A\u8981\u5220\u9664\u7528\u6237\u7EC4\u5417\uFF1F",placement:"bottomRight",icon:(0,e.jsx)(M.Z,{style:{color:"red"}}),onConfirm:f()(u()().mark(function c(){var g,P,D;return u()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,(0,v.AG)(a.id);case 2:if(g=C.sent,P=g.success,!P){C.next=8;break}return G.ZP.success("\u64CD\u4F5C\u6210\u529F"),(D=i.current)===null||D===void 0||D.reload(),C.abrupt("return");case 8:case"end":return C.stop()}},c)})),okText:"\u662F",cancelText:"\u5426",children:(0,e.jsx)("a",{target:"_blank",style:{color:"red"},children:"\u5220\u9664"},"remove")},"delete")]}}},request:v.S4}),(0,e.jsx)(w,{visible:A,onFinish:function(){var d=f()(u()().mark(function t(a){var c,g,P;return u()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,v.wZ)(a);case 3:if(g=n.sent,P=g.success,(c=i.current)===null||c===void 0||c.reload(),!P){n.next=10;break}return G.ZP.success("\u64CD\u4F5C\u6210\u529F"),m(!1),n.abrupt("return",!0);case 10:return n.abrupt("return",!1);case 13:return n.prev=13,n.t0=n.catch(0),n.abrupt("return",!1);case 16:case"end":return n.stop()}},t,null,[[0,13]])}));return function(t){return d.apply(this,arguments)}}(),onCancel:function(){m(!1)}})]})})},or=ur}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* eiam-console - Employee Identity and Access Management Program
|
||||
* Copyright © 2020-2023 TopIAM (support@topiam.cn)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
"use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[8648],{27755:function(C,o,t){t.r(o),t.d(o,{default:function(){return O}});var u=t(84019),r=t.n(u),n=t(76091),a=t.n(n),s=t(32061),f=t.n(s),e=t(7206),d=t(75109),E=t(59787),m=t(78035),v=t(60240),p=t(30708),c=t(63342),x=function(){var i=(0,E.useModel)("@@initialState"),R=i.initialState,S=i.setInitialState,F=(0,E.useLocation)();return(0,m.Z)(f()(r()().mark(function T(){return r()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:v.Z.warning({title:"\u4F1A\u8BDD\u8FC7\u671F",content:"\u60A8\u7684\u767B\u5F55\u4FE1\u606F\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002",okText:"\u786E\u8BA4",okType:"danger",centered:!1,maskClosable:!1,okCancel:!1,onOk:function(){var j=f()(r()().mark(function Z(){var h,P,l,I,g,D;return r()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,S(a()(a()({},R),{},{currentUser:void 0}));case 2:h=p.Z.parse(F.search),P=h,l=P.redirect_uri,I={pathname:e.wm},g=l&&l.split("/"),l&&l!==g[0]+"//"+g[2]+"/"&&(I=a()(a()({},I),{},{search:p.Z.stringify({redirect_uri:l})})),D=d.m.createHref(I),window.location.replace(D);case 9:case"end":return M.stop()}},Z)}));function U(){return j.apply(this,arguments)}return U}()});case 1:case"end":return y.stop()}},T)}))),(0,c.jsx)(c.Fragment,{})},O=function(){return(0,c.jsx)(x,{})}},78035:function(C,o,t){var u=t(79685),r=t(43865),n=t(15035);const a=s=>{n.Z&&((0,r.mf)(s)||console.error(`useMount: parameter \`fn\` expected to be a function, but got "${typeof s}".`)),(0,u.useEffect)(()=>{s==null||s()},[])};o.Z=a},43865:function(C,o,t){t.d(o,{mf:function(){return r}});const u=e=>e!==null&&typeof e=="object",r=e=>typeof e=="function",n=e=>typeof e=="string",a=e=>typeof e=="boolean",s=e=>typeof e=="number",f=e=>typeof e=="undefined"},15035:function(C,o){o.Z=!1},96249:function(C,o,t){t.d(o,{RV:function(){return f},Rk:function(){return e},Ux:function(){return E},aM:function(){return d},q3:function(){return a},qI:function(){return s}});var u=t(59067),r=t(8779),n=t(79685);const a=n.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),s=n.createContext(null),f=m=>{const v=(0,r.Z)(m,["prefixCls"]);return n.createElement(u.RV,Object.assign({},v))},e=n.createContext({prefixCls:""}),d=n.createContext({}),E=m=>{let{children:v,status:p,override:c}=m;const x=(0,n.useContext)(d),O=(0,n.useMemo)(()=>{const i=Object.assign({},x);return c&&delete i.isFormItemInput,p&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[p,c,x]);return n.createElement(d.Provider,{value:O},v)}}}]);
|
|
@ -1,18 +0,0 @@
|
|||
/*
|
||||
* eiam-console - Employee Identity and Access Management Program
|
||||
* Copyright © 2020-2023 TopIAM (support@topiam.cn)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
"use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[8648],{63642:function(C,o,t){t.r(o),t.d(o,{default:function(){return O}});var u=t(84019),r=t.n(u),n=t(76091),a=t.n(n),s=t(32061),f=t.n(s),e=t(73575),d=t(81369),E=t(84530),m=t(78035),v=t(60240),p=t(65251),c=t(63342),x=function(){var i=(0,E.useModel)("@@initialState"),R=i.initialState,S=i.setInitialState,F=(0,E.useLocation)();return(0,m.Z)(f()(r()().mark(function T(){return r()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:v.Z.warning({title:"\u4F1A\u8BDD\u8FC7\u671F",content:"\u60A8\u7684\u767B\u5F55\u4FE1\u606F\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002",okText:"\u786E\u8BA4",okType:"danger",centered:!1,maskClosable:!1,okCancel:!1,onOk:function(){var j=f()(r()().mark(function Z(){var h,P,l,I,g,D;return r()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,S(a()(a()({},R),{},{currentUser:void 0}));case 2:h=p.Z.parse(F.search),P=h,l=P.redirect_uri,I={pathname:e.wm},g=l&&l.split("/"),l&&l!==g[0]+"//"+g[2]+"/"&&(I=a()(a()({},I),{},{search:p.Z.stringify({redirect_uri:l})})),D=d.m.createHref(I),window.location.replace(D);case 9:case"end":return M.stop()}},Z)}));function U(){return j.apply(this,arguments)}return U}()});case 1:case"end":return y.stop()}},T)}))),(0,c.jsx)(c.Fragment,{})},O=function(){return(0,c.jsx)(x,{})}},78035:function(C,o,t){var u=t(79685),r=t(43865),n=t(15035);const a=s=>{n.Z&&((0,r.mf)(s)||console.error(`useMount: parameter \`fn\` expected to be a function, but got "${typeof s}".`)),(0,u.useEffect)(()=>{s==null||s()},[])};o.Z=a},43865:function(C,o,t){t.d(o,{mf:function(){return r}});const u=e=>e!==null&&typeof e=="object",r=e=>typeof e=="function",n=e=>typeof e=="string",a=e=>typeof e=="boolean",s=e=>typeof e=="number",f=e=>typeof e=="undefined"},15035:function(C,o){o.Z=!1},96249:function(C,o,t){t.d(o,{RV:function(){return f},Rk:function(){return e},Ux:function(){return E},aM:function(){return d},q3:function(){return a},qI:function(){return s}});var u=t(59067),r=t(8779),n=t(79685);const a=n.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),s=n.createContext(null),f=m=>{const v=(0,r.Z)(m,["prefixCls"]);return n.createElement(u.RV,Object.assign({},v))},e=n.createContext({prefixCls:""}),d=n.createContext({}),E=m=>{let{children:v,status:p,override:c}=m;const x=(0,n.useContext)(d),O=(0,n.useMemo)(()=>{const i=Object.assign({},x);return c&&delete i.isFormItemInput,p&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[p,c,x]);return n.createElement(d.Provider,{value:O},v)}}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue