mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-05 22:30:28 +08:00
修复缓存条件设置时界面可能不会自动刷新的问题
This commit is contained in:
@@ -98,6 +98,8 @@ Vue.component("http-cache-refs-config-box", {
|
||||
resp.data.cacheRef.id = that.refs[index].id
|
||||
Vue.set(that.refs, index, resp.data.cacheRef)
|
||||
that.change()
|
||||
that.$refs.cacheRef[index].updateConds(resp.data.cacheRef.conds)
|
||||
that.$refs.cacheRef[index].notifyChange()
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -140,6 +142,8 @@ Vue.component("http-cache-refs-config-box", {
|
||||
return unit
|
||||
},
|
||||
change: function () {
|
||||
this.$forceUpdate()
|
||||
|
||||
// 自动保存
|
||||
if (this.vCachePolicyId != null && this.vCachePolicyId > 0) { // 缓存策略
|
||||
Tea.action("/servers/components/cache/updateRefs")
|
||||
|
||||
Reference in New Issue
Block a user