fix: res_body 为空报错

This commit is contained in:
zwjamnsss 2017-10-27 15:56:32 +08:00
parent 56192061e3
commit 5043b773bc

View File

@ -95,7 +95,7 @@ export default class MockCol extends Component {
delay: 0,
headers: [{name: '', value: ''}],
params: {},
res_body: getMockText(currInterface.res_body)
res_body: currInterface.res_body && getMockText(currInterface.res_body)
}
let ipFilters = [];