删除冗余的VITE_JINGROW_CLOUD_URL

This commit is contained in:
jingrow 2025-11-05 14:28:43 +08:00
parent 03f4b7a5bc
commit 4e44bed5db
2 changed files with 4 additions and 4 deletions

View File

@ -371,8 +371,8 @@ function getImageUrl(imageUrl: string): string {
if (imageUrl.startsWith('http')) {
return imageUrl
}
// 使URL
const cloudUrl = import.meta.env.VITE_JINGROW_CLOUD_URL || 'https://cloud.jingrow.com'
// 使URL
const cloudUrl = 'https://cloud.jingrow.com'
return `${cloudUrl}${imageUrl.startsWith('/') ? '' : '/'}${imageUrl}`
}

View File

@ -235,8 +235,8 @@ function getImageUrl(imageUrl: string): string {
if (imageUrl.startsWith('http')) {
return imageUrl
}
// 使URL
const cloudUrl = import.meta.env.VITE_JINGROW_CLOUD_URL || 'https://cloud.jingrow.com'
// 使URL
const cloudUrl = 'https://cloud.jingrow.com'
return `${cloudUrl}${imageUrl.startsWith('/') ? '' : '/'}${imageUrl}`
}