| | |
| | | } else if (config.active === 'raw') { |
| | | if (config.raw) { |
| | | try { |
| | | raws = JSON.parse(config.raw) |
| | | raws = config.raw.replace(/@userid@/ig, sessionStorage.getItem('UserID') || '').replace(/@LoginUID@/ig, sessionStorage.getItem('LoginUID') || '') |
| | | raws = JSON.parse(raws) |
| | | } catch (e) { |
| | | Modal.error({ |
| | | title: '参数格式错误,必须为JSON格式!' |
| | |
| | | <Radio value={'formData'}>formData</Radio> |
| | | <Radio value={'raw'}>raw</Radio> |
| | | </Radio.Group> |
| | | {active === 'raw' ? <span style={{float: 'right', color: '#a5a5a5', fontSize: '13px'}}>注:使用@userid@、@loginuid@时将自动替换。</span> : null} |
| | | </div> |
| | | <div className={'body-content ' + (active === 'none' ? 'show' : '')}> |
| | | <div className="no-body">This request does not have a body</div> |