From 58e7f0b19eed17dd7f7392649e87734ab6c23df4 Mon Sep 17 00:00:00 2001 From: sin <2943460818@qq.com> Date: Thu, 9 May 2019 20:56:12 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BF=AE=E5=A4=8D=E6=9B=B4=E6=96=B0=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin-web/src/pages/Admin/ResourceList.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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}`, })(