From ca45edae5fd8fa48de170e7ac405fae64178d870 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Thu, 30 Nov 2023 14:10:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E6=B7=BB=E5=8A=A0=20U?= =?UTF-8?q?ser-Agent=20=E8=BF=87=E6=BB=A4=E5=A4=B1=E8=B4=A5=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#3115)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/dto/request/website.go | 2 +- frontend/src/views/website/ssl/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/dto/request/website.go b/backend/app/dto/request/website.go index 283b44d92c01..6af6d69ea1bb 100644 --- a/backend/app/dto/request/website.go +++ b/backend/app/dto/request/website.go @@ -210,7 +210,7 @@ type WebsiteRedirectReq struct { type WebsiteWafFileUpdate struct { WebsiteID uint `json:"websiteID" validate:"required"` Content string `json:"content" validate:"required"` - Type string `json:"type" validate:"required,oneof=cc ip_white ip_block url_white url_block cookie_block args_check post_check ua_check file_ext_block"` + Type string `json:"type" validate:"required,oneof=cc ip_white ip_block url_white url_block cookie_block args_check post_check ua_check file_ext_block user_agent"` } type WebsiteCommonReq struct { diff --git a/frontend/src/views/website/ssl/index.vue b/frontend/src/views/website/ssl/index.vue index 2c8cdacbe65d..bf1e39c75ad3 100644 --- a/frontend/src/views/website/ssl/index.vue +++ b/frontend/src/views/website/ssl/index.vue @@ -109,7 +109,7 @@ show-overflow-tooltip prop="organization" > - +