filesbox/web/dist/p__User__NoticePage.0058da1...

2 lines
683 B
JavaScript
Raw Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[52679],{3356:function(h,_,e){"use strict";e.r(_);var B=e(34792),r=e(48086),i=e(2824),t=e(67294),n=e(30672),c=e(72368),m=e(85893),E=u=>{var s=u.match,l=(0,n.YB)(),P=(0,t.useState)({}),o=(0,i.Z)(P,2),M=o[0],v=o[1];return(0,t.useEffect)(()=>{s.params.token&&s.params.id&&$.ajax({url:"/api/notice/info?id=".concat(s.params.id),method:"get",headers:{token:s.params.token},success:a=>{var D=a.success,O=a.code,g=a.message,d=a.data,f=d===void 0?{}:d;D?v(f):r.ZP.error(l.formatMessage({id:O,defaultMessage:g}))},error:a=>{console.log(a)}})},[s.params.id]),(0,m.jsx)(c.Z,{record:M,hideBorder:!0})};_.default=E}}]);