mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-27 05:00:25 +08:00
多处增加是否独立配置选项
This commit is contained in:
@@ -27,7 +27,7 @@ func (this *IndexAction) RunGet(params struct {
|
||||
this.ErrorPage(err)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
this.Data["webId"] = webConfig.Id
|
||||
|
||||
gzipId := int64(0)
|
||||
@@ -53,6 +53,15 @@ func (this *IndexAction) RunGet(params struct {
|
||||
|
||||
this.Data["gzipConfig"] = gzipConfig
|
||||
|
||||
if webConfig.GzipRef == nil {
|
||||
webConfig.GzipRef = &serverconfigs.HTTPGzipRef{
|
||||
IsPrior: false,
|
||||
IsOn: false,
|
||||
GzipId: 0,
|
||||
}
|
||||
}
|
||||
this.Data["gzipRef"] = webConfig.GzipRef
|
||||
|
||||
this.Show()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user