mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
opti: raw
This commit is contained in:
parent
4f28b9f82d
commit
4870462c16
@ -406,7 +406,7 @@ export default class Run extends Component {
|
||||
|
||||
const { method, domains, pathParam, pathname, query, headers, bodyForm, currDomain, bodyType, resHeader } = this.state;
|
||||
const hasPlugin = this.hasCrossRequestPlugin();
|
||||
const isResJson = resHeader['content-type'] && resHeader['content-type'].indexOf('application/json') !== -1
|
||||
const isResJson = resHeader && resHeader['content-type'] && resHeader['content-type'].indexOf('application/json') !== -1
|
||||
let path = pathname;
|
||||
pathParam.forEach(item => {
|
||||
path = path.replace(`:${item.name}`, item.value || `:${item.name}`);
|
||||
|
Loading…
Reference in New Issue
Block a user