From f73760b218b52002ec87727ca76e9d49ccee7c18 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Wed, 9 Nov 2022 17:50:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/public/js/components/common/checkbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/public/js/components/common/checkbox.js b/web/public/js/components/common/checkbox.js index 4892dba9..84a62c59 100644 --- a/web/public/js/components/common/checkbox.js +++ b/web/public/js/components/common/checkbox.js @@ -35,7 +35,7 @@ Vue.component("checkbox", { this.newValue = "" }, isChecked: function () { - return this.newValue == this.elementValue + return (typeof (this.newValue) == "boolean" && this.newValue) || this.newValue == this.elementValue } }, watch: {