Commit 4637b78c authored by alwayOnlie's avatar alwayOnlie

强制上传合同模板

parent 7a514ef1
...@@ -86,8 +86,7 @@ const AddContract: React.FC<parmas> = (props) => { ...@@ -86,8 +86,7 @@ const AddContract: React.FC<parmas> = (props) => {
/**提交数据 */ /**提交数据 */
const onSubmit = async () => { const onSubmit = async () => {
await form.validateFields().then(res => { await form.validateFields().then(res => {
console.log(uploadFile.name) if (uploadFile.name && uploadFile.file) {
if (uploadFile.name) {
const parmas = { const parmas = {
name: res.name, name: res.name,
version: res.version, version: res.version,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment