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