mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
feat: 请求接口
This commit is contained in:
parent
db66f448d2
commit
30bac341d2
@ -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