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
|
||||
{...formItemLayout}
|
||||
label="基本路径"
|
||||
label={(
|
||||
<span>
|
||||
基本路径
|
||||
<Tooltip title="基本路径为空是根路径">
|
||||
<Icon type="question-circle-o" />
|
||||
</Tooltip>
|
||||
</span>
|
||||
)}
|
||||
>
|
||||
{getFieldDecorator('basepath', {
|
||||
initialValue: initFormValues.basepath,
|
||||
rules: [{
|
||||
required: true, message: '请输入项目基本路径! '
|
||||
required: false, message: '请输入项目基本路径! '
|
||||
}]
|
||||
})(
|
||||
<Input />
|
||||
@ -335,7 +342,7 @@ class UpDateModal extends Component {
|
||||
{getFieldDecorator('desc', {
|
||||
initialValue: initFormValues.desc,
|
||||
rules: [{
|
||||
required: true, message: '请输入描述!'
|
||||
required: false, message: '请输入描述!'
|
||||
}]
|
||||
})(
|
||||
<TextArea rows={4} />
|
||||
|
Loading…
Reference in New Issue
Block a user