From 20059362a3400372f3268eed859be35e45e0358b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Fri, 23 May 2025 15:07:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E6=B5=AE=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/diy/components/diy/header.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/diy/components/diy/header.vue b/pages/diy/components/diy/header.vue index c1dec64c..71d512c4 100644 --- a/pages/diy/components/diy/header.vue +++ b/pages/diy/components/diy/header.vue @@ -332,7 +332,7 @@ // 封装公共逻辑函数 get_up_slide_style(defaultColor, customColor, opacityValue) { const opacityStr = opacityValue > 0 ? `opacity: ${opacityValue};` : ''; - const color = (customColor === '' || opacityValue <= 0) ? defaultColor : customColor; + const color = customColor === '' ? defaultColor : opacityValue <= 0 ? defaultColor : customColor; return `color: ${color};${opacityStr}`; }, // 定位设置