diff --git a/public/react/src/modules/developer/components/initTabCtx/index.js b/public/react/src/modules/developer/components/initTabCtx/index.js index 315fd7242..da0e97fe9 100644 --- a/public/react/src/modules/developer/components/initTabCtx/index.js +++ b/public/react/src/modules/developer/components/initTabCtx/index.js @@ -76,8 +76,8 @@ function InitTabCtx(props, ref) { }, [inputValue]); const _handleTestCodeFormSubmit = (cb) => { - const { form } = props; - form.validateFields((err, values) => { + const {form} = props; + 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 edf741c36..9c2cf099e 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) => { })(