fix: 意见反馈,bug修复。

This commit is contained in:
tianyongbao
2026-07-14 13:38:35 +08:00
parent 65239f57ba
commit e6ecdec407

View File

@@ -176,10 +176,14 @@ function normalizeUploadUrl(uploadRes) {
if (!url) {
throw new Error('上传截图失败')
}
let finalUrl
if (/^https?:\/\//.test(url)) {
return url
finalUrl = url
} else {
finalUrl = `${appConfig.baseUrl}${url.startsWith('/') ? '' : '/'}${url}`
}
return `${appConfig.baseUrl}${url.startsWith('/') ? '' : '/'}${url}`
// 去除 API 网关前缀,文件访问 URL 不应包含 /prod-api
return finalUrl.replace('/prod-api/', '/')
}
function getFeedbackSource() {