Commit 08e50193 by chenwq

fix: 修复确保获取基础配置时的可选链调用

1 parent 3888af1d
...@@ -30,7 +30,7 @@ class GlOssApi { ...@@ -30,7 +30,7 @@ class GlOssApi {
try { try {
// 获取基础配置并动态设置baseURL到httpClient // 获取基础配置并动态设置baseURL到httpClient
this.baseConfig = await OssConfigService.fetchBaseConfig() this.baseConfig = await OssConfigService.fetchBaseConfig()
await this.ensureApiConfig(this.baseConfig.alyOss.bucket || bucketName, custAttrObj.systemSource) await this.ensureApiConfig(this.baseConfig?.alyOss?.bucket || bucketName, custAttrObj?.systemSource)
const fileName = file.name const fileName = file.name
const client = new OSS({ const client = new OSS({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!