From ef98b2d1c4562662908a2eb0f5822c2ce1e1d7e6 Mon Sep 17 00:00:00 2001 From: A1300399510 <1300399510@qq.com> Date: Fri, 14 Nov 2025 01:12:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=86box-shadow=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E4=B8=BAfilter:=20drop-shadow=E4=BB=A5=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E9=98=B4=E5=BD=B1=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改多个CSS/LESS文件中的阴影效果,使用filter: drop-shadow替代box-shadow,保持样式一致性。同时修复item-head.js中的API端点路径错误。 --- component/item-head/item-head.js | 2 +- css/details.css | 2 +- css/details.less | 2 +- css/public.css | 2 +- css/public.less | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/component/item-head/item-head.js b/component/item-head/item-head.js index 41dcc00..fb5cc69 100644 --- a/component/item-head/item-head.js +++ b/component/item-head/item-head.js @@ -138,7 +138,7 @@ export const itemHead = defineComponent({ const cutAnonymousState = (state) => { const target = item.value; - ajax("/v2/api/forum/postTopicAnonymousStatus", { + ajax("/v2/api/forum/setTopicAnonymousStatus", { token: target.token, anonymous: state, }) diff --git a/css/details.css b/css/details.css index d65fe73..b3229f9 100644 --- a/css/details.css +++ b/css/details.css @@ -221,7 +221,7 @@ height: 100px; background-color: #ffffff; border-radius: 6px; - box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.16862745); + filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.16862745)); flex-direction: column; display: none; } diff --git a/css/details.less b/css/details.less index 5b4d532..c8913dd 100644 --- a/css/details.less +++ b/css/details.less @@ -255,7 +255,7 @@ height: 100px; background-color: rgba(255, 255, 255, 1); border-radius: 6px; - box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.168627450980392); + filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.16862745)); flex-direction: column; display: none; diff --git a/css/public.css b/css/public.css index b8fb899..e784c94 100644 --- a/css/public.css +++ b/css/public.css @@ -654,7 +654,7 @@ body { height: 100px; background-color: #ffffff; border-radius: 6px; - box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.16862745); + filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.16862745)); flex-direction: column; display: none; } diff --git a/css/public.less b/css/public.less index c7a5d07..e5975fd 100644 --- a/css/public.less +++ b/css/public.less @@ -787,7 +787,7 @@ body { height: 100px; background-color: rgba(255, 255, 255, 1); border-radius: 6px; - box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.168627450980392); + filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.16862745)); flex-direction: column; display: none;