From 3e31ae89ccb965f8e1f06b0a1f07cd239b8c413f Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 12 May 2025 11:32:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20UI=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/v-query/Component.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/custom-component/v-query/Component.vue b/core/core-frontend/src/custom-component/v-query/Component.vue index f4ec990d8d..c3cdabcc1c 100644 --- a/core/core-frontend/src/custom-component/v-query/Component.vue +++ b/core/core-frontend/src/custom-component/v-query/Component.vue @@ -138,8 +138,10 @@ const btnHoverStyle = computed(() => { let btnColor = customStyle.btnColor if (customStyle.btnColor.startsWith('rgb')) { btnColor = rgbaTo16color(customStyle.btnColor) - } else { - btnColor = customStyle.btnColor.substr(1) + } + + if (btnColor.startsWith('#')) { + btnColor = btnColor.substr(1) } return {