From fd2fce8a8d97f9dedd322a9b83b8a9419c8185d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Tue, 16 Apr 2024 11:19:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=86=85=E5=AE=B9=E5=8E=8B?= =?UTF-8?q?=E7=BC=A9=E4=B8=AD=E7=9A=84=E7=BA=A7=E5=88=AB=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/http-compression-config-box.js | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) 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", { - - 压缩级别 - - -

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

- - 支持的扩展名