mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-23 23:57:22 +08:00
🎈 perf: 添加自动导入,优化性能
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import { computed } from 'vue'
|
||||
|
||||
// 设置歌手背景图片
|
||||
export const setBackgroundImg = (url: String) => {
|
||||
return 'background-image:' + 'url(' + url + ')'
|
||||
@@ -41,7 +39,6 @@ export const getMusicProxyUrl = (url: string) => {
|
||||
return `${ProxyUrl}/mc?url=${PUrl}`
|
||||
}
|
||||
|
||||
|
||||
export const getImgUrl = computed(() => (url: string, size: string = '') => {
|
||||
const bdUrl = 'https://image.baidu.com/search/down?url='
|
||||
const imgUrl = encodeURIComponent(`${url}?param=${size}`)
|
||||
|
||||
Reference in New Issue
Block a user