mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-24 13:14:16 +08:00
feat: 请求接口
This commit is contained in:
parent
b5df731ae9
commit
9916ecbd7e
@ -100,7 +100,7 @@ export default class InterfaceTest extends Component {
|
||||
render () {
|
||||
const { method, url, seqGroup, interfaceName, interfaceProject } = this.props;
|
||||
const { prd_host, basepath, protocol, env } = interfaceProject;
|
||||
const reqParams = JSON.parse(this.props.reqParams);
|
||||
const reqParams = this.props.reqParams ? JSON.parse(this.props.reqParams) : [];
|
||||
const pathname = (basepath + url).replace(/\/+/g, '/');
|
||||
|
||||
const domains = [{name: 'prd', domain: protocol + '://' + prd_host}];
|
||||
|
Loading…
Reference in New Issue
Block a user