fix 天翼云构建url

This commit is contained in:
wkj 2023-11-23 10:58:04 +08:00
parent 4bc4c53a03
commit b4bae72543
3 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ export default class CTYun {
}
}
composeFileUrl(extraFile, context, style) {
const { config } = getConfig(context, 'Cos', 'qiniu');
const { config } = getConfig(context, 'Cos', 'ctyun');
if (config) {
let bucket = config.buckets.find((ele) => ele.name === extraFile.bucket);
if (bucket) {

View File

@ -68,7 +68,7 @@ class CTYun {
}
}
composeFileUrl(extraFile, context, style) {
const { config } = (0, getContextConfig_1.getConfig)(context, 'Cos', 'qiniu');
const { config } = (0, getContextConfig_1.getConfig)(context, 'Cos', 'ctyun');
if (config) {
let bucket = config.buckets.find((ele) => ele.name === extraFile.bucket);
if (bucket) {

View File

@ -107,7 +107,7 @@ export default class CTYun implements Cos<ED, BRC, FRC> {
context: FRC,
style?: string,
) {
const { config } = getConfig<ED, BRC, FRC>(context, 'Cos', 'qiniu');
const { config } = getConfig<ED, BRC, FRC>(context, 'Cos', 'ctyun');
if (config) {
let bucket = (config.buckets as CTYunCosConfig['buckets']).find((ele) => ele.name === extraFile.bucket!);