From 96027e1065fdf7f54b50d1747f802ac5e5c9b9fd Mon Sep 17 00:00:00 2001 From: xierz Date: Wed, 21 Oct 2020 14:12:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=BE=91=E6=A0=8F?= =?UTF-8?q?=E7=9B=AE=E4=B8=AD=E7=BC=96=E8=BE=91=E7=8A=B6=E6=80=81=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/manager/cms/category/form.ftl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/WEB-INF/manager/cms/category/form.ftl b/src/main/webapp/WEB-INF/manager/cms/category/form.ftl index 8aed6bac..ef0fc28e 100644 --- a/src/main/webapp/WEB-INF/manager/cms/category/form.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/category/form.ftl @@ -542,10 +542,10 @@ this.form.id = ms.util.getParameter("id"); this.form.childId = ms.util.getParameter("childId");// 判断是否增加子栏目 - // 判断三种状态,默认为编辑状态 + // 判断三种状态,默认为新增状态 this.categoryTypeDisabled = false;// 控制栏目分类是否可编辑 - if (this.form.id != undefined && this.form.childId == undefined) { - // 切换新增状态,id&childId 为空 + if (this.form.id != undefined && (this.form.childId == undefined || this.form.childId == "undefined")) { + // 切换编辑状态,id不为空 childId 为空 this.categoryTypeDisabled = true; this.get(this.form.id); } else if (this.form.childId) {