king
2023-08-27 da64ab0923bf8817fc8599a6e37b953ce38f64c8
src/views/interface/workspace/request/index.jsx
@@ -95,7 +95,8 @@
    } 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格式!'
@@ -281,6 +282,7 @@
                <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>