From 35ae13b1c34d9866b9852668c5a89bcd431ec018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sun, 14 Nov 2021 16:21:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BC=93=E5=AD=98=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/components/server/http-cache-config-box.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 61677940..8a2575d1 100644 --- a/web/public/js/components/server/http-cache-config-box.js +++ b/web/public/js/components/server/http-cache-config-box.js @@ -16,7 +16,8 @@ Vue.component("http-cache-config-box", { cacheConfig.cacheRefs = [] } return { - cacheConfig: cacheConfig + cacheConfig: cacheConfig, + moreOptionsVisible: false } }, methods: { @@ -32,6 +33,9 @@ Vue.component("http-cache-config-box", { result += String.fromCharCode(parseInt(s.substring(i, i + 1)) + ((Math.random() < 0.5) ? "a" : "A").charCodeAt(0)) } this.cacheConfig.purgeKey = result + }, + showMoreOptions: function () { + this.moreOptionsVisible = !this.moreOptionsVisible } }, template: `
@@ -59,6 +63,13 @@ Vue.component("http-cache-config-box", { + + + 收起选项更多选项 + + + + 自动添加X-Cache Header