Skip to content

Commit

Permalink
fix: 解决添加 User-Agent 过滤失败的问题 (#3115)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengkunwang223 authored Nov 30, 2023
1 parent 7c3c4db commit ca45eda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/app/dto/request/website.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/website/ssl/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
show-overflow-tooltip
prop="organization"
></el-table-column>
<el-table-column :label="$t('website.remark')" fix show-overflow-tooltip prop="description">
<el-table-column :label="$t('website.remark')" fix prop="description">
<template #default="{ row }">
<fu-read-write-switch>
<template #read>
Expand Down

0 comments on commit ca45eda

Please sign in to comment.