diff --git a/frontend/app/(main)/waf/rules/editor/components/node-properties.tsx b/frontend/app/(main)/waf/rules/editor/components/node-properties.tsx index e62520e0..e44ce2b0 100644 --- a/frontend/app/(main)/waf/rules/editor/components/node-properties.tsx +++ b/frontend/app/(main)/waf/rules/editor/components/node-properties.tsx @@ -154,7 +154,7 @@ function PropertyFields({ 开启 UA 检查 - 开启后如果请求头不携带 UA 返回 False;并可配置匹配与屏蔽 + 开启后如果请求头不携带 UA 将返回 False {node.config.require_ua && ( <> - -
-

- UA 匹配 -

- - - 匹配模式 - - - - 浏览器与操作系统两侧都有选择时生效 - - - ({ - value: option.value, - label: option.label, - searchText: `${option.label} ${option.value}`, - }))} - value={node.config.browsers} - onChange={(browsers) => - onChange({ ...node, config: { ...node.config, browsers } }) - } - /> - ({ - value: option.value, - label: option.label, - searchText: `${option.label} ${option.value}`, - }))} - value={node.config.operating_systems} - onChange={(operating_systems) => - onChange({ - ...node, - config: { ...node.config, operating_systems }, - }) - } - /> -
@@ -346,6 +281,71 @@ function PropertyFields({ )}
+ +
+

+ UA 匹配 +

+ + + 匹配模式 + + + + 浏览器与操作系统两侧都有选择时生效 + + + ({ + value: option.value, + label: option.label, + searchText: `${option.label} ${option.value}`, + }))} + value={node.config.browsers} + onChange={(browsers) => + onChange({ ...node, config: { ...node.config, browsers } }) + } + /> + ({ + value: option.value, + label: option.label, + searchText: `${option.label} ${option.value}`, + }))} + value={node.config.operating_systems} + onChange={(operating_systems) => + onChange({ + ...node, + config: { ...node.config, operating_systems }, + }) + } + /> +
)}