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