From 3796b25676c11fb6e3d7c7e8b14caf78b9fa80f9 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Thu, 24 Feb 2022 20:39:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98=E5=8F=AF=E4=BB=A5=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=98=AF=E5=90=A6=E4=BD=BF=E7=94=A8=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/http-cache-config-box.js | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/web/public/js/components/server/http-cache-config-box.js b/web/public/js/components/server/http-cache-config-box.js index 7a3aaa06..ed60f060 100644 --- a/web/public/js/components/server/http-cache-config-box.js +++ b/web/public/js/components/server/http-cache-config-box.js @@ -11,15 +11,23 @@ Vue.component("http-cache-config-box", { enableCacheControlMaxAge: false, cacheRefs: [], purgeIsOn: false, - purgeKey: "" + purgeKey: "", + disablePolicyRefs: false } } if (cacheConfig.cacheRefs == null) { cacheConfig.cacheRefs = [] } + return { cacheConfig: cacheConfig, - moreOptionsVisible: false + moreOptionsVisible: false, + enablePolicyRefs: !cacheConfig.disablePolicyRefs + } + }, + watch: { + enablePolicyRefs: function (v) { + this.cacheConfig.disablePolicyRefs = !v } }, methods: { @@ -60,6 +68,13 @@ Vue.component("http-cache-config-box", { 当前集群没有设置缓存策略,当前配置无法生效。 + + 使用默认缓存条件 + + +

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

+ + 是否开启缓存