From da943c3269ccd042ed7592a07b62997e06238970 Mon Sep 17 00:00:00 2001 From: koogua Date: Fri, 16 Apr 2021 18:15:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=BE=E7=A8=8B=E4=BA=8C?= =?UTF-8?q?=E7=BA=A7=E5=88=86=E7=B1=BB=E9=94=99=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Admin/Views/category/list.volt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Http/Admin/Views/category/list.volt b/app/Http/Admin/Views/category/list.volt index dec3b755..1eab62ac 100644 --- a/app/Http/Admin/Views/category/list.volt +++ b/app/Http/Admin/Views/category/list.volt @@ -53,8 +53,12 @@ {% set restore_url = url({'for':'admin.category.restore','id':item.id}) %} {{ item.id }} - {% if item.type == 1 and item.level < 2 %} - {{ item.name }} + {% if item.type == 1 %} + {% if item.level == 1 %} + {{ item.name }} + {% else %} + {{ item.name }} + {% endif %} {% elseif item.type == 2 %} {{ item.name }} {% elseif item.type == 3 %}