mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-02-15 11:55:36 +08:00
优化代码
This commit is contained in:
@@ -52,6 +52,10 @@ func (this *IndexAction) RunGet(params struct {
|
||||
HttpWebId: webId,
|
||||
HeaderJSON: refJSON,
|
||||
})
|
||||
if err != nil {
|
||||
this.ErrorPage(err)
|
||||
return
|
||||
}
|
||||
isChanged = true
|
||||
}
|
||||
if webConfig.ResponseHeaderPolicy == nil {
|
||||
@@ -75,6 +79,10 @@ func (this *IndexAction) RunGet(params struct {
|
||||
HttpWebId: webId,
|
||||
HeaderJSON: refJSON,
|
||||
})
|
||||
if err != nil {
|
||||
this.ErrorPage(err)
|
||||
return
|
||||
}
|
||||
isChanged = true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user