mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
fix: 解决反向代理匹配规则为空之后无法删除的问题 (#4777)
Refs https://github.com/1Panel-dev/1Panel/issues/4771
This commit is contained in:
parent
a40116d991
commit
5c46c26dd5
@ -178,7 +178,7 @@ type WebsiteProxyConfig struct {
|
|||||||
CacheTime int `json:"cacheTime" `
|
CacheTime int `json:"cacheTime" `
|
||||||
CacheUnit string `json:"cacheUnit"`
|
CacheUnit string `json:"cacheUnit"`
|
||||||
Name string `json:"name" validate:"required"`
|
Name string `json:"name" validate:"required"`
|
||||||
Modifier string `json:"modifier" validate:"required"`
|
Modifier string `json:"modifier"`
|
||||||
Match string `json:"match" validate:"required"`
|
Match string `json:"match" validate:"required"`
|
||||||
ProxyPass string `json:"proxyPass" validate:"required"`
|
ProxyPass string `json:"proxyPass" validate:"required"`
|
||||||
ProxyHost string `json:"proxyHost" validate:"required"`
|
ProxyHost string `json:"proxyHost" validate:"required"`
|
||||||
|
@ -126,7 +126,6 @@ const proxyForm = ref<FormInstance>();
|
|||||||
const rules = ref({
|
const rules = ref({
|
||||||
name: [Rules.requiredInput, Rules.appName],
|
name: [Rules.requiredInput, Rules.appName],
|
||||||
match: [Rules.requiredInput],
|
match: [Rules.requiredInput],
|
||||||
modifier: [Rules.requiredInput],
|
|
||||||
cacheTime: [Rules.requiredInput, checkNumberRange(1, 65535)],
|
cacheTime: [Rules.requiredInput, checkNumberRange(1, 65535)],
|
||||||
proxyPass: [Rules.requiredInput],
|
proxyPass: [Rules.requiredInput],
|
||||||
proxyHost: [Rules.requiredInput],
|
proxyHost: [Rules.requiredInput],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user