From f67b4a32a2c27fe4c44d79860745707542e63f17 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 11 Sep 2025 15:05:12 +0800 Subject: [PATCH 1/2] bugfix --- wwwroot/menu.ui | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wwwroot/menu.ui b/wwwroot/menu.ui index ce1af6e..0ccf6fc 100644 --- a/wwwroot/menu.ui +++ b/wwwroot/menu.ui @@ -1,4 +1,3 @@ -{% set roles = get_user_roles(get_user()) %} { "widgettype":"Menu", "options":{ @@ -10,6 +9,7 @@ }, "cwidth":10, "items":[ +{% get_user() %} { "name":"config", "label":"配置", @@ -60,6 +60,7 @@ } ] } +{% endif %} ] } } From 9fd5a8b96963e178c01437a2d8a12df653d00c37 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 11 Sep 2025 15:16:50 +0800 Subject: [PATCH 2/2] bugfix --- wwwroot/menu.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/menu.ui b/wwwroot/menu.ui index 0ccf6fc..e43566b 100644 --- a/wwwroot/menu.ui +++ b/wwwroot/menu.ui @@ -9,7 +9,7 @@ }, "cwidth":10, "items":[ -{% get_user() %} +{% if get_user() %} { "name":"config", "label":"配置",