🐞 fix: 修复解析方法的问题

This commit is contained in:
alger
2023-12-20 16:19:16 +08:00
parent a1780bc9d4
commit 19140cd680
4 changed files with 18 additions and 23 deletions
+11
View File
@@ -30,6 +30,17 @@ export const secondToMinute = (s: number) => {
export const getIsMc = () => {
return true
}
const ProxyUrl =
import.meta.env.VITE_API_PROXY + '' || 'http://110.42.251.190:9856'
export const getMusicProxyUrl = (url: string) => {
if (!getIsMc()) {
return url
}
const PUrl = url.split('').join('+')
return `${ProxyUrl}/mc?url=${PUrl}`
}
export const getImgUrl = computed(() => (url: string, size: string = '') => {
const bdUrl = 'https://image.baidu.com/search/down?url='