|
|
@ -76,7 +76,7 @@ class InitTabCtx extends PureComponent {
|
|
|
|
handleTestCodeFormSubmit = (cb) => {
|
|
|
|
handleTestCodeFormSubmit = (cb) => {
|
|
|
|
const {form, debuggerCode} = this.props;
|
|
|
|
const {form, debuggerCode} = this.props;
|
|
|
|
// console.log(debuggerCode);
|
|
|
|
// console.log(debuggerCode);
|
|
|
|
form.validateFields((err, values) => {
|
|
|
|
form.validateFieldsAndScroll((err, values) => {
|
|
|
|
if (!err) { // 表单验证通过时,调用测试接口
|
|
|
|
if (!err) { // 表单验证通过时,调用测试接口
|
|
|
|
cb && cb(); // 调用回调函数,切换 tab
|
|
|
|
cb && cb(); // 调用回调函数,切换 tab
|
|
|
|
// console.log('表单值:', values);
|
|
|
|
// console.log('表单值:', values);
|
|
|
|