From 5c46c26dd5528bfbaf7662514b1724ffbd03fa99 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Sun, 28 Apr 2024 22:12:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=8F=8D=E5=90=91?= =?UTF-8?q?=E4=BB=A3=E7=90=86=E5=8C=B9=E9=85=8D=E8=A7=84=E5=88=99=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E4=B9=8B=E5=90=8E=E6=97=A0=E6=B3=95=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20(#4777)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs https://github.com/1Panel-dev/1Panel/issues/4771 --- backend/app/dto/request/website.go | 2 +- .../views/website/website/config/basic/proxy/create/index.vue | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/app/dto/request/website.go b/backend/app/dto/request/website.go index 37548fcb1..3cc391917 100644 --- a/backend/app/dto/request/website.go +++ b/backend/app/dto/request/website.go @@ -178,7 +178,7 @@ type WebsiteProxyConfig struct { CacheTime int `json:"cacheTime" ` CacheUnit string `json:"cacheUnit"` Name string `json:"name" validate:"required"` - Modifier string `json:"modifier" validate:"required"` + Modifier string `json:"modifier"` Match string `json:"match" validate:"required"` ProxyPass string `json:"proxyPass" validate:"required"` ProxyHost string `json:"proxyHost" validate:"required"` diff --git a/frontend/src/views/website/website/config/basic/proxy/create/index.vue b/frontend/src/views/website/website/config/basic/proxy/create/index.vue index 61fe29e19..21913450f 100644 --- a/frontend/src/views/website/website/config/basic/proxy/create/index.vue +++ b/frontend/src/views/website/website/config/basic/proxy/create/index.vue @@ -126,7 +126,6 @@ const proxyForm = ref(); const rules = ref({ name: [Rules.requiredInput, Rules.appName], match: [Rules.requiredInput], - modifier: [Rules.requiredInput], cacheTime: [Rules.requiredInput, checkNumberRange(1, 65535)], proxyPass: [Rules.requiredInput], proxyHost: [Rules.requiredInput],