From a1e9b18a4dbfd21e1bf4d5cb60974ac2f0115efd Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 30 五月 2025 15:18:44 +0800 Subject: [PATCH] 2025-05-30 --- src/tabviews/custom/components/form/simple-form/index.jsx | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tabviews/custom/components/form/simple-form/index.jsx b/src/tabviews/custom/components/form/simple-form/index.jsx index c3edeff..fc9822d 100644 --- a/src/tabviews/custom/components/form/simple-form/index.jsx +++ b/src/tabviews/custom/components/form/simple-form/index.jsx @@ -403,12 +403,12 @@ } } - mkFormSubmit = (btnId, callback, formId) => { + mkFormSubmit = (btnId, callback, formId, errId) => { const { group } = this.state if (group.uuid !== btnId) return - this.formRef.handleConfirm(formId).then(res => { + this.formRef.handleConfirm(formId, errId).then(res => { MKEmitter.emit('triggerFormSubmit', {menuId: btnId, form: res}) }, () => { callback && callback() @@ -460,7 +460,7 @@ data={data} action={group} unload={config.setting.supModule && !BID} - inputSubmit={(id) => this.mkFormSubmit(group.uuid, null, id)} + inputSubmit={(id, errId) => this.mkFormSubmit(group.uuid, null, id, errId)} wrappedComponentRef={(inst) => this.formRef = inst} /> : null} {data ? <div className={'mk-form-action ' + (group.$button || '')}> -- Gitblit v1.8.0