mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-03 04:50:32 +08:00
fix: res_body 为空报错
This commit is contained in:
parent
56192061e3
commit
5043b773bc
@ -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 = [];
|
||||
|
Loading…
Reference in New Issue
Block a user