const onOk = (() => { console.log(dataParams, "dataParams") if(fileLoading){ cutSchemeListAdd(dataParams) .unwrap() .then((response: any) => { if (response.code === 200) { message.success("新增成功") props.onConfirm() } }); }else{ message.error("请确保文件上传成功后生成表格") } })