mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-11 01:25:11 +08:00
fix: Fixed issue with can not disable cache in antiLeech (#10306)
This commit is contained in:
parent
feabc488fe
commit
50e99f1f4c
2 changed files with 5 additions and 5 deletions
|
|
@ -81,8 +81,8 @@ type NginxCommonReq struct {
|
|||
|
||||
type NginxAntiLeechUpdate struct {
|
||||
WebsiteID uint `json:"websiteID" validate:"required"`
|
||||
Extends string `json:"extends" validate:"required"`
|
||||
Return string `json:"return" validate:"required"`
|
||||
Extends string `json:"extends"`
|
||||
Return string `json:"return"`
|
||||
Enable bool `json:"enable" `
|
||||
ServerNames []string `json:"serverNames"`
|
||||
Cache bool `json:"cache"`
|
||||
|
|
|
|||
|
|
@ -240,9 +240,9 @@ const update = async (enable: boolean) => {
|
|||
if (enable) {
|
||||
updateDomainsString();
|
||||
form.serverNames = form.domains.split('\n');
|
||||
}
|
||||
if (!checkReturn()) {
|
||||
return;
|
||||
if (!checkReturn()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
form.enable = enable;
|
||||
loading.value = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue