diff --git a/public/react/src/modules/developer/components/initTabCtx/index.js b/public/react/src/modules/developer/components/initTabCtx/index.js index 3a70f8091..6582003c8 100644 --- a/public/react/src/modules/developer/components/initTabCtx/index.js +++ b/public/react/src/modules/developer/components/initTabCtx/index.js @@ -77,7 +77,7 @@ function InitTabCtx (props, ref) { const _handleTestCodeFormSubmit = (cb) => { const {form} = props; - form.validateFields((err, values) => { + form.validateFieldsAndScroll((err, values) => { if (!err) { // 表单验证通过时,调用测试接口 cb && cb(); // 调用回调函数,切换 tab onDebuggerCode && onDebuggerCode(values); diff --git a/public/react/src/modules/developer/components/initTabCtx/index1.js b/public/react/src/modules/developer/components/initTabCtx/index1.js index e80bbd767..27ec7eaf4 100644 --- a/public/react/src/modules/developer/components/initTabCtx/index1.js +++ b/public/react/src/modules/developer/components/initTabCtx/index1.js @@ -1,7 +1,7 @@ /* - * @Description: 显示tab中的内容 - * @Author: tangjiang - * @Date: 2019-11-18 10:43:03 + * @Description: 显示tab中的内容 + * @Author: tangjiang + * @Date: 2019-11-18 10:43:03 * @Last Modified by: tangjiang * @Last Modified time: 2019-11-18 11:35:12 */ @@ -31,7 +31,7 @@ const renderUserCase = (ctx, position, props) => { })(