diff --git a/src/military/fetch.js b/src/military/fetch.js index 50b3d2a3..229d294a 100644 --- a/src/military/fetch.js +++ b/src/military/fetch.js @@ -6,10 +6,10 @@ import cookie from 'react-cookies'; let actionUrl = ''; if (window.location.href.indexOf('localhost') > -1) { - // actionUrl='https://taskapi.osredm.com'; - actionUrl='http://192.168.31.47:8081'; + actionUrl='https://taskapi.osredm.com'; + // actionUrl='http://192.168.31.47:8081'; }else if(window.location.href.indexOf('192.168.31.48') > -1){ - actionUrl="http://117.50.100.12:8008"; + actionUrl='https://taskapi.osredm.com'; }else if(window.location.href.indexOf('noticeweb.osredm') > -1){ actionUrl="https://taskapi.osredm.com"; }else if(window.location.href.indexOf('https://osredm.com')>-1){ diff --git a/src/military/notice/noticeDetail/index.jsx b/src/military/notice/noticeDetail/index.jsx index 47f6dc89..3843ded8 100644 --- a/src/military/notice/noticeDetail/index.jsx +++ b/src/military/notice/noticeDetail/index.jsx @@ -11,12 +11,14 @@ for (const item of noticeType) { } export default Form.create()(({ match, history, showNotification, form }) => { - const { getFieldDecorator, validateFields, setFieldsValue, } = form; + const { getFieldDecorator, validateFields, setFieldsValue } = form; const [reload, setReload] = useState(0); const [noticeData, setNoticeData] = useState({}); const [visible, setVisible] = useState(false); + const [readerName,setReaderName]=useState(''); + const id = match.params.noticeId; useEffect(() => { @@ -34,7 +36,7 @@ export default Form.create()(({ match, history, showNotification, form }) => { const helper = useCallback( (label, name, rules, widget) => (