fix: 项目编辑basepath bug

This commit is contained in:
suxiaoxin 2017-08-01 16:07:10 +08:00
parent 8f31ed0ee1
commit 1932d8eac2

View File

@ -316,12 +316,19 @@ class UpDateModal extends Component {
<FormItem <FormItem
{...formItemLayout} {...formItemLayout}
label="基本路径" label={(
<span>
基本路径&nbsp;
<Tooltip title="基本路径为空是根路径">
<Icon type="question-circle-o" />
</Tooltip>
</span>
)}
> >
{getFieldDecorator('basepath', { {getFieldDecorator('basepath', {
initialValue: initFormValues.basepath, initialValue: initFormValues.basepath,
rules: [{ rules: [{
required: true, message: '请输入项目基本路径! ' required: false, message: '请输入项目基本路径! '
}] }]
})( })(
<Input /> <Input />
@ -335,7 +342,7 @@ class UpDateModal extends Component {
{getFieldDecorator('desc', { {getFieldDecorator('desc', {
initialValue: initFormValues.desc, initialValue: initFormValues.desc,
rules: [{ rules: [{
required: true, message: '请输入描述!' required: false, message: '请输入描述!'
}] }]
})( })(
<TextArea rows={4} /> <TextArea rows={4} />