⚡ 上级菜单改为不必填
This commit is contained in:
parent
5f39f3a0c7
commit
27bec32783
|
|
@ -139,12 +139,6 @@ class MenuAdd extends PureComponent {
|
|||
<Col span={10}>
|
||||
<FormItem {...formItemLayout} label="上级菜单">
|
||||
{getFieldDecorator('parentId', {
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: '请选择上级菜单',
|
||||
},
|
||||
],
|
||||
initialValue: detail.category === 2 ? detail.parentId : detail.id,
|
||||
})(
|
||||
<TreeSelect
|
||||
|
|
|
|||
|
|
@ -156,12 +156,6 @@ class MenuEdit extends PureComponent {
|
|||
<Col span={10}>
|
||||
<FormItem {...formItemLayout} label="上级菜单">
|
||||
{getFieldDecorator('parentId', {
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: '请选择上级菜单',
|
||||
},
|
||||
],
|
||||
initialValue: detail.parentId,
|
||||
})(
|
||||
<TreeSelect
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user