From 18251e3eaec9ac307ea855fd9152d4cab86eab3f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 11 Jun 2026 23:54:17 +0800 Subject: [PATCH] fix: add favicon.ico and i18n_getmsgs to any permissions --- scripts/load_path.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/load_path.py b/scripts/load_path.py index e14e819..d8e5584 100644 --- a/scripts/load_path.py +++ b/scripts/load_path.py @@ -5,7 +5,7 @@ import subprocess MOD = "rbac" -# any — 无需登录(登录页、注册、验证码等) +# any — 无需登录(登录页、注册、验证码、公共资源等) PATHS_ANY = [ f"/{MOD}/admin_menu.ui", f"/{MOD}/gen_sms_code.dspy", @@ -23,6 +23,9 @@ PATHS_ANY = [ f"/{MOD}/usermenu.ui", f"/{MOD}/userpassword_login.dspy", f"/{MOD}/userpassword_login.ui", + # 公共资源 + "/favicon.ico", + "/i18n_getmsgs", ] # logined — 需要认证的页面和 API