diff --git a/client/components/Postman/Postman.js b/client/components/Postman/Postman.js index 08938d21..2a2e9c40 100755 --- a/client/components/Postman/Postman.js +++ b/client/components/Postman/Postman.js @@ -369,7 +369,7 @@ export default class Run extends Component { id={+this.state._id} /> } - - + }
diff --git a/client/components/UsernameAutoComplete/UsernameAutoComplete.js b/client/components/UsernameAutoComplete/UsernameAutoComplete.js index 231b66b6..766df1b2 100755 --- a/client/components/UsernameAutoComplete/UsernameAutoComplete.js +++ b/client/components/UsernameAutoComplete/UsernameAutoComplete.js @@ -109,6 +109,7 @@ class UsernameAutoComplete extends Component { style={{ width: '100%' }} placeholder="请输入用户名" filterOption={false} + optionLabelProp='children' notFoundContent={fetching ? 当前用户不存在 : null} onSearch={this.handleSearch} onChange={this.handleChange} diff --git a/server/controllers/interface.js b/server/controllers/interface.js index 895966b0..c52ee834 100755 --- a/server/controllers/interface.js +++ b/server/controllers/interface.js @@ -143,8 +143,8 @@ class interfaceController extends baseController { return ctx.body = yapi.commons.resReturn(null, 40033, '没有权限'); } params.method = params.method || 'GET'; - params.res_body_is_json_schema = _.isUndefined (params.res_body_is_json_schema) ? true : params.res_body_is_json_schema; - params.req_body_is_json_schema = _.isUndefined(params.req_body_is_json_schema) ? true : params.req_body_is_json_schema; + params.res_body_is_json_schema = _.isUndefined (params.res_body_is_json_schema) ? false : params.res_body_is_json_schema; + params.req_body_is_json_schema = _.isUndefined(params.req_body_is_json_schema) ? false : params.req_body_is_json_schema; params.method = params.method.toUpperCase(); params.req_params = params.req_params || []; params.res_body_type = params.res_body_type ? params.res_body_type.toLowerCase() : 'json';