fetch(modify):修改原来的bug
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m53s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m53s
This commit is contained in:
@@ -94,8 +94,8 @@ export class StorageService extends BaseService {
|
||||
if (error.name === 'TypeError' && error.message.includes('Failed to fetch')) {
|
||||
throw new Error(
|
||||
'CORS 错误: 无法上传文件到对象存储。' +
|
||||
'这通常是因为对象存储服务器未正确配置 CORS 策略。' +
|
||||
'请联系后端开发人员检查对象存储的 CORS 配置。'
|
||||
'这通常是因为对象存储服务器未正确配置 CORS 策略。' +
|
||||
'请联系后端开发人员检查对象存储的 CORS 配置。'
|
||||
)
|
||||
}
|
||||
throw error
|
||||
|
||||
Reference in New Issue
Block a user