From 1193f7f56a10db711fa7ad568774f1a939003c68 Mon Sep 17 00:00:00 2001 From: bwstudio Date: Wed, 9 Sep 2026 22:34:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(cookieManager):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A1=B5=E9=87=8D=E7=BD=AE=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E6=97=A0=E6=95=88=E4=B8=8E=E7=BD=91=E5=9D=80=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E8=BF=87=E4=B8=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1) 重置按钮无响应:4 个页面容器是
而非
, type="reset" 没有可重置的表单。改为 ...
(与标准用户管理页一致)。 2) 保存报错:lay-verify="required|url" 强制要求带协议头, 输入 www.baidu.com 时前台校验直接拦截(提示“链接格式不正确”)、/save 未发出。 改为自定义 siteurl 规则,允许省略协议;后端新增 _normalize_url 自动补 https://。 已 Playwright 验证:重置可清空全部字段;无协议网址保存成功且落库为 https:// 前缀。 --- .../templates/system/cookie_site/add.html | 16 +++++++++++++--- .../templates/system/cookie_site/edit.html | 16 +++++++++++++--- .../templates/system/cookie_user/add.html | 16 +++++++++++++--- .../templates/system/cookie_user/edit.html | 16 +++++++++++++--- plugins/cookieManager/view/cookie_site.py | 15 +++++++++++++-- plugins/cookieManager/view/cookie_user.py | 15 +++++++++++++-- 6 files changed, 78 insertions(+), 16 deletions(-) diff --git a/plugins/cookieManager/templates/system/cookie_site/add.html b/plugins/cookieManager/templates/system/cookie_site/add.html index 7a7f8ea..e9cd611 100644 --- a/plugins/cookieManager/templates/system/cookie_site/add.html +++ b/plugins/cookieManager/templates/system/cookie_site/add.html @@ -6,7 +6,7 @@ {% include 'system/common/header.html' %} -
+
@@ -17,7 +17,7 @@
-
@@ -75,7 +75,7 @@
-
+ {% include 'system/common/footer.html' %}