删除冗余的VITE_JINGROW_CLOUD_URL
This commit is contained in:
parent
03f4b7a5bc
commit
4e44bed5db
@ -371,8 +371,8 @@ function getImageUrl(imageUrl: string): string {
|
|||||||
if (imageUrl.startsWith('http')) {
|
if (imageUrl.startsWith('http')) {
|
||||||
return imageUrl
|
return imageUrl
|
||||||
}
|
}
|
||||||
// 使用环境变量中的云端URL拼接
|
// 使用云端URL拼接
|
||||||
const cloudUrl = import.meta.env.VITE_JINGROW_CLOUD_URL || 'https://cloud.jingrow.com'
|
const cloudUrl = 'https://cloud.jingrow.com'
|
||||||
return `${cloudUrl}${imageUrl.startsWith('/') ? '' : '/'}${imageUrl}`
|
return `${cloudUrl}${imageUrl.startsWith('/') ? '' : '/'}${imageUrl}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -235,8 +235,8 @@ function getImageUrl(imageUrl: string): string {
|
|||||||
if (imageUrl.startsWith('http')) {
|
if (imageUrl.startsWith('http')) {
|
||||||
return imageUrl
|
return imageUrl
|
||||||
}
|
}
|
||||||
// 使用环境变量中的云端URL拼接
|
// 使用云端URL拼接
|
||||||
const cloudUrl = import.meta.env.VITE_JINGROW_CLOUD_URL || 'https://cloud.jingrow.com'
|
const cloudUrl = 'https://cloud.jingrow.com'
|
||||||
return `${cloudUrl}${imageUrl.startsWith('/') ? '' : '/'}${imageUrl}`
|
return `${cloudUrl}${imageUrl.startsWith('/') ? '' : '/'}${imageUrl}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user