// 缓存条件列表 Vue.component("http-cache-refs-box", { props: ["v-cache-refs"], data: function () { let refs = this.vCacheRefs if (refs == null) { refs = [] } return { refs: refs } }, methods: { timeUnitName: function (unit) { switch (unit) { case "ms": return "毫秒" case "second": return "秒" case "minute": return "分钟" case "hour": return "小时" case "day": return "天" case "week": return "周 " } return unit } }, template: `

暂时还没有缓存条件。

缓存条件 分组关系 缓存时间
{{cacheRef.minSize.count}}{{cacheRef.minSize.unit}} - {{cacheRef.maxSize.count}}{{cacheRef.maxSize.unit}} 0 - {{cacheRef.maxSize.count}}{{cacheRef.maxSize.unit}} {{cacheRef.methods.join(", ")}} 状态码:{{cacheRef.status.map(function(v) {return v.toString()}).join(", ")}} {{cacheRef.life.count}} {{timeUnitName(cacheRef.life.unit)}} 不缓存
` })