diff --git a/web/public/js/components/server/http-compression-config-box.js b/web/public/js/components/server/http-compression-config-box.js index 887b46db..da127979 100644 --- a/web/public/js/components/server/http-compression-config-box.js +++ b/web/public/js/components/server/http-compression-config-box.js @@ -15,7 +15,7 @@ Vue.component("http-compression-config-box", { isOn: false, useDefaultTypes: true, types: ["brotli", "gzip", "zstd", "deflate"], - level: 5, + level: 3, decompressData: false, gzipRef: null, deflateRef: null, @@ -85,19 +85,6 @@ Vue.component("http-compression-config-box", { allTypes: configTypes } }, - watch: { - "config.level": function (v) { - let level = parseInt(v) - if (isNaN(level)) { - level = 1 - } else if (level < 1) { - level = 1 - } else if (level > 10) { - level = 10 - } - this.config.level = level - } - }, methods: { isOn: function () { return ((!this.vIsLocation && !this.vIsGroup) || this.config.isPrior) && this.config.isOn @@ -173,15 +160,6 @@ Vue.component("http-compression-config-box", { - - 压缩级别 - - -

级别越高,压缩比例越大。

- - 支持的扩展名