实现服务的缓存策略设置

This commit is contained in:
刘祥超
2020-10-04 20:38:27 +08:00
parent ed731de9ec
commit 1cd0cd0376
25 changed files with 502 additions and 133 deletions

View File

@@ -0,0 +1,17 @@
Tea.context(function () {
this.success = NotifyPopup
this.cacheRef = null
let cachePolicyId = 0
if (this.cachePolicies.length > 0) {
cachePolicyId = this.cachePolicies[0].id
}
if (window.parent.UPDATING_CACHE_REF != null) {
let cacheRef = window.parent.UPDATING_CACHE_REF
this.cacheRef = cacheRef
if (cacheRef.cachePolicy != null) {
cachePolicyId = cacheRef.cachePolicy.id
}
}
this.cachePolicyId = cachePolicyId
})