Skip to content

Commit c0ebf1e

Browse files
committed
fix(upload): cos图床上传问题
1 parent 3393c3e commit c0ebf1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/imageBeds/cos.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class CosClient {
3838
Region: this.config.region, // 存储桶所在地域,必须字段
3939
Key: `${this.config.prefixKey}/${fileName}`, // 文件名 必须
4040
});
41-
return `https://${this.config.bucket}.cos.${this.config.region}.myqcloud.com/c`;
41+
return `https://${this.config.bucket}.cos.${this.config.region}.myqcloud.com/${this.config.prefixKey}/${fileName}`;
4242
} catch (e) {
4343
out.warn(`检查图片信息时出错: ${transformRes(e)}`);
4444
return '';

0 commit comments

Comments
 (0)