From f56703145f010984ca920b961e096ba56255eed8 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sun, 5 Mar 2023 19:51:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0components.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/public/js/components.js | 24 ++++++++++++++---------- web/public/js/components.src.js | 24 ++++++++++++++---------- 2 files changed, 28 insertions(+), 20 deletions(-) diff --git a/web/public/js/components.js b/web/public/js/components.js index 8c95ea4a..837f9af4 100644 --- a/web/public/js/components.js +++ b/web/public/js/components.js @@ -1986,18 +1986,22 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
`}),Vue.component("metric-board",{template:"
"}),Vue.component("http-cache-config-box",{props:["v-cache-config","v-is-location","v-is-group","v-cache-policy","v-web-id"],data:function(){let e=this.vCacheConfig;return null==(e=null==e?{isPrior:!1,isOn:!1,addStatusHeader:!0,addAgeHeader:!1,enableCacheControlMaxAge:!1,cacheRefs:[],purgeIsOn:!1,purgeKey:"",disablePolicyRefs:!1}:e).cacheRefs&&(e.cacheRefs=[]),{cacheConfig:e,moreOptionsVisible:!1,enablePolicyRefs:!e.disablePolicyRefs}},watch:{enablePolicyRefs:function(e){this.cacheConfig.disablePolicyRefs=!e}},methods:{isOn:function(){return(!this.vIsLocation&&!this.vIsGroup||this.cacheConfig.isPrior)&&this.cacheConfig.isOn},isPlus:function(){return Tea.Vue.teaIsPlus},generatePurgeKey:function(){let e=Math.random().toString()+Math.random().toString(),t=e.replace(/0\./g,"").replace(/\./g,""),i="";for(let e=0;e + + + + + + +
全局缓存策略 +
{{vCachePolicy.name}} +

使用当前服务所在集群的设置。

+
+ 当前集群没有设置缓存策略,当前配置无法生效。 +
+ - - - - diff --git a/web/public/js/components.src.js b/web/public/js/components.src.js index eb95baed..e9c9bcbd 100755 --- a/web/public/js/components.src.js +++ b/web/public/js/components.src.js @@ -5773,18 +5773,22 @@ Vue.component("http-cache-config-box", { }, template: `
+ +
缓存策略 -
{{vCachePolicy.name}} -

使用当前服务所在集群的设置。

-
- 当前集群没有设置缓存策略,当前配置无法生效。 -
启用缓存 @@ -2020,7 +2024,7 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio 使用默认缓存条件 -

选中后使用系统中已经定义的默认缓存条件。

+

选中后使用系统全局缓存策略中已经定义的默认缓存条件。

+ + + + +
全局缓存策略 +
{{vCachePolicy.name}} +

使用当前服务所在集群的设置。

+
+ 当前集群没有设置缓存策略,当前配置无法生效。 +
+ - - - -
缓存策略 -
{{vCachePolicy.name}} -

使用当前服务所在集群的设置。

-
- 当前集群没有设置缓存策略,当前配置无法生效。 -
启用缓存 @@ -5807,7 +5811,7 @@ Vue.component("http-cache-config-box", { 使用默认缓存条件 -

选中后使用系统中已经定义的默认缓存条件。

+

选中后使用系统全局缓存策略中已经定义的默认缓存条件。