Commit 9b216d2f authored by 涂伟's avatar 涂伟

fix: '流程中心新增流程编码逻辑优化'

parent 20dd7dae
Pipeline #70631 passed with stages
import React, { useState, useEffect } from 'react';
import { CreateFlow } from '@/services/workflow/workflow';
import { Form, Modal, Input, notification, Select, Radio } from 'antd';
import e from 'express';
const { Option } = Select;
const { TextArea } = Input;
const FlowModal = props => {
......@@ -449,7 +450,7 @@ const FlowModal = props => {
}
};
const prefix = value => {
let str = value;
let str = value.currentTarget.value;
if (typeof str !== 'string') {
throw new Error(
-1,
......@@ -547,7 +548,13 @@ const FlowModal = props => {
},
]}
>
<Input placeholder="请输入流程名称" onChange={prefix} readOnly={modalType === 'edit'} />
<Input
placeholder="请输入流程名称"
onChange={value => {
prefix(value);
}}
readOnly={modalType === 'edit'}
/>
</Form.Item>
<Form.Item
label="分组信息"
......
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