feat: 优化歌词背景色 加载问题

This commit is contained in:
alger
2024-09-18 15:11:20 +08:00
parent 6dc14ec51b
commit eb2ea1981d
8 changed files with 99 additions and 22 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ defineExpose({
}
.drawer-back {
@apply absolute bg-cover bg-center;
filter: brightness(80%);
// filter: brightness(80%);
z-index: -1;
width: 200%;
height: 200%;
+1 -1
View File
@@ -127,7 +127,7 @@ watch(
() => store.state.playMusic,
async () => {
loadLrc(playMusic.value.id);
background.value = await getImageLinearBackground(getImgUrl(playMusic.value?.picUrl, '300y300'));
background.value = playMusic.value.backgroundColor as string;
},
{ immediate: true, deep: true },
);