mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
fix: 项目编辑basepath bug
This commit is contained in:
parent
8f31ed0ee1
commit
1932d8eac2
@ -316,12 +316,19 @@ class UpDateModal extends Component {
|
|||||||
|
|
||||||
<FormItem
|
<FormItem
|
||||||
{...formItemLayout}
|
{...formItemLayout}
|
||||||
label="基本路径"
|
label={(
|
||||||
|
<span>
|
||||||
|
基本路径
|
||||||
|
<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} />
|
||||||
|
Loading…
Reference in New Issue
Block a user