提交 58e7f0b1 authored 作者: sin's avatar sin

- 修复更新 bug

上级 b1e8f64a
......@@ -99,7 +99,10 @@ const CreateForm = Form.create()(props => {
<FormItem labelCol={{ span: 5 }} wrapperCol={{ span: 15 }} label="父级菜单">
{form.getFieldDecorator('pid', {
rules: [{ required: true, message: '请输入父级编号!' }],
initialValue: initValues.pid,
initialValue:
initValues.pid === 0
? `根节点-${initValues.pid}`
: `${initValues.displayName}-${initValues.pid}`,
})(
<TreeSelect
showSearch
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论