From cefe53d57fd103fcf3ceee8645040b89ff8b3523 Mon Sep 17 00:00:00 2001 From: Dawn <2439646234@qq.com> Date: Sat, 11 Jan 2025 12:43:56 +0800 Subject: [PATCH] =?UTF-8?q?feat(view):=20:sparkles:=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=80=8F=E6=98=8E=E9=AB=98=E6=96=AF=E6=A8=A1=E7=B3=8A=E5=BC=80?= =?UTF-8?q?=E5=85=B3=20(#177)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 9 ++++++++ src/components/rightBox/ApplyList.vue | 2 +- src/components/rightBox/chatBox/ChatMain.vue | 2 +- .../rightBox/chatBox/ChatSidebar.vue | 2 +- src/services/http.ts | 1 - src/stores/setting.ts | 3 ++- src/styles/scss/global/variable.scss | 21 ++++++++++++++----- src/typings/stores.d.ts | 2 ++ src/views/moreWindow/settings/General.vue | 9 +++++++- 9 files changed, 40 insertions(+), 11 deletions(-) diff --git a/src/App.vue b/src/App.vue index dcb7f433..d285bfa7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -42,6 +42,15 @@ watch( { immediate: true } ) +/** 控制高斯模糊 */ +watch( + () => page.value.blur, + (val) => { + document.documentElement.setAttribute('data-blur', val ? '1' : '0') + }, + { immediate: true } +) + /** 控制字体样式 */ watch( () => page.value.fonts, diff --git a/src/components/rightBox/ApplyList.vue b/src/components/rightBox/ApplyList.vue index abca7b41..54cb19f3 100644 --- a/src/components/rightBox/ApplyList.vue +++ b/src/components/rightBox/ApplyList.vue @@ -24,7 +24,7 @@ trigger="click" placement="bottom-start" :show-arrow="false" - style="padding: 0; background: var(--bg-info); backdrop-filter: blur(10px)"> + style="padding: 0; background: var(--bg-info)">