From cd6ca800de619e1686217fd4ec0864775d42bfaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Mon, 10 Feb 2025 10:39:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=AC=E5=85=B1=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E7=9A=84=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/common/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/js/common/common.js b/common/js/common/common.js index 4a5f0f58..dede6101 100644 --- a/common/js/common/common.js +++ b/common/js/common/common.js @@ -430,7 +430,7 @@ export function gradient_handle(color_list, direction, is_return_all = true) { new_color_list.forEach((item, index) => { container_common_styles += `${item.color ? item.color : 'rgb(255 255 255 / 0%)'}`; if (color_list.length == 1) { - container_common_styles += ` ${item.color_percentage || 0}%, ${item.color} 100%`; + container_common_styles += ` ${item.color_percentage || 0}%, ${item.color ? item.color : 'rgb(255 255 255 / 0%)'} 100%`; } else { if (typeof item.color_percentage === 'number') { if (index == color_list.length - 1) {