mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-18 23:10:25 +08:00
修复缓存条件可能无法保存的Bug
This commit is contained in:
@@ -79,6 +79,7 @@ func (this *IndexAction) RunPost(params struct {
|
||||
this.ErrorPage(err)
|
||||
return
|
||||
}
|
||||
|
||||
err = cacheConfig.Init()
|
||||
if err != nil {
|
||||
this.Fail("检查配置失败:" + err.Error())
|
||||
|
||||
@@ -12,6 +12,9 @@ Vue.component("http-cache-config-box", {
|
||||
purgeKey: ""
|
||||
}
|
||||
}
|
||||
if (cacheConfig.cacheRefs == null) {
|
||||
cacheConfig.cacheRefs = []
|
||||
}
|
||||
return {
|
||||
cacheConfig: cacheConfig
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user