diff --git a/admin-web/src/pages/Admin/ResourceList.js b/admin-web/src/pages/Admin/ResourceList.js index 20aeb09d3..e2f9b7046 100644 --- a/admin-web/src/pages/Admin/ResourceList.js +++ b/admin-web/src/pages/Admin/ResourceList.js @@ -99,7 +99,10 @@ const CreateForm = Form.create()(props => { {form.getFieldDecorator('pid', { rules: [{ required: true, message: '请输入父级编号!' }], - initialValue: initValues.pid, + initialValue: + initValues.pid === 0 + ? `根节点-${initValues.pid}` + : `${initValues.displayName}-${initValues.pid}`, })(