From 3c0a97c3cced3598068da756b429abccff13cb89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Wed, 1 Feb 2023 18:16:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=98=B2=E7=9B=97=E9=93=BE?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=B8=AD=E5=9F=9F=E5=90=8D=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9A=84Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/components/server/http-referers-config-box.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/public/js/components/server/http-referers-config-box.js b/web/public/js/components/server/http-referers-config-box.js index 4b6a4d72..7f9a26b2 100644 --- a/web/public/js/components/server/http-referers-config-box.js +++ b/web/public/js/components/server/http-referers-config-box.js @@ -27,8 +27,16 @@ Vue.component("http-referers-config-box", { return ((!this.vIsLocation && !this.vIsGroup) || this.config.isPrior) && this.config.isOn }, changeAllowDomains: function (domains) { + if (typeof (domains) == "object") { + this.config.allowDomains = domains + this.$forceUpdate() + } }, changeDenyDomains: function (domains) { + if (typeof (domains) == "object") { + this.config.denyDomains = domains + this.$forceUpdate() + } } }, template: `