feat: 优化歌词背景 修改为背景色 以解决卡顿问题

This commit is contained in:
alger
2024-09-14 18:22:56 +08:00
parent 36f8257a3e
commit 6dc14ec51b
4 changed files with 166 additions and 23 deletions
+2 -2
View File
@@ -63,14 +63,14 @@ export const getMusicProxyUrl = (url: string) => {
return `${ProxyUrl}/mc?url=${PUrl}`;
};
export const getImgUrl = computed(() => (url: string | undefined, size: string = '') => {
export const getImgUrl = (url: string | undefined, size: string = '') => {
const bdUrl = 'https://image.baidu.com/search/down?url=';
const imgUrl = `${url}?param=${size}`;
if (!getIsMc()) {
return imgUrl;
}
return `${bdUrl}${encodeURIComponent(imgUrl)}`;
});
};
export const isMobile = computed(() => {
const flag = navigator.userAgent.match(