From fe63d72e473c7d5c4e404617147c938fb4218852 Mon Sep 17 00:00:00 2001 From: dailer Date: Fri, 7 Jul 2023 11:39:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=20=E6=94=B9=E4=B8=BA=20console.er?= =?UTF-8?q?ror?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/core/constant/writable.var.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/fineui/src/core/constant/writable.var.js b/packages/fineui/src/core/constant/writable.var.js index 2b22ba030..45e048502 100644 --- a/packages/fineui/src/core/constant/writable.var.js +++ b/packages/fineui/src/core/constant/writable.var.js @@ -49,7 +49,8 @@ PropertyDescriptors["pixRatio"] = { export let StartOfWeek = 1; export const setStartOfWeek = v => { if (![0, 1].includes(v)) { - throw new Error("setStartOfWeek must be 0 or 1"); + console.error("setStartOfWeek must be 0 or 1"); + return; } StartOfWeek = v; };