feat(打包初始化):

This commit is contained in:
alger
2023-12-18 19:39:36 +08:00
parent cf598f1c9c
commit 043ad5906b
19 changed files with 938 additions and 57 deletions
+2 -2
View File
@@ -28,11 +28,11 @@ export const secondToMinute = (s: number) => {
}
export const getIsMc = () => {
return !!location.href.includes('mc.')
return true
}
export const getImgUrl = computed(() => (url: string, size: string) => {
const bdUrl = 'https://image.baidu.com/search/down?url='
const imgUrl = encodeURIComponent(`${url}?param=${size}`)
return getIsMc() ? `${bdUrl}${imgUrl}` : `${url}?param=${size}`
return `${bdUrl}${imgUrl}`
})