From 860bc38f7b33c8147c79e00d8c6000d2381a9d5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E5=B9=B3=E8=89=BA?= <52643018@qq.com> Date: Tue, 6 Jul 2021 15:32:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=87=E8=83=BD=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/shared.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/shared.js b/common/shared.js index 7ab6a62..043dfaf 100644 --- a/common/shared.js +++ b/common/shared.js @@ -11,6 +11,8 @@ export function isRight(obj) { } } else if (isValueType(obj) === 'number' && (isValueType(obj) === "number" && !isNaN(obj)) && obj !== 0) { return true; + } else if (isValueType(obj) === 'boolean') { + return obj } for (var key in obj) { return true;