fix 天翼云构建url
This commit is contained in:
parent
4bc4c53a03
commit
b4bae72543
|
|
@ -66,7 +66,7 @@ export default class CTYun {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
composeFileUrl(extraFile, context, style) {
|
composeFileUrl(extraFile, context, style) {
|
||||||
const { config } = getConfig(context, 'Cos', 'qiniu');
|
const { config } = getConfig(context, 'Cos', 'ctyun');
|
||||||
if (config) {
|
if (config) {
|
||||||
let bucket = config.buckets.find((ele) => ele.name === extraFile.bucket);
|
let bucket = config.buckets.find((ele) => ele.name === extraFile.bucket);
|
||||||
if (bucket) {
|
if (bucket) {
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ class CTYun {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
composeFileUrl(extraFile, context, style) {
|
composeFileUrl(extraFile, context, style) {
|
||||||
const { config } = (0, getContextConfig_1.getConfig)(context, 'Cos', 'qiniu');
|
const { config } = (0, getContextConfig_1.getConfig)(context, 'Cos', 'ctyun');
|
||||||
if (config) {
|
if (config) {
|
||||||
let bucket = config.buckets.find((ele) => ele.name === extraFile.bucket);
|
let bucket = config.buckets.find((ele) => ele.name === extraFile.bucket);
|
||||||
if (bucket) {
|
if (bucket) {
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ export default class CTYun implements Cos<ED, BRC, FRC> {
|
||||||
context: FRC,
|
context: FRC,
|
||||||
style?: string,
|
style?: string,
|
||||||
) {
|
) {
|
||||||
const { config } = getConfig<ED, BRC, FRC>(context, 'Cos', 'qiniu');
|
const { config } = getConfig<ED, BRC, FRC>(context, 'Cos', 'ctyun');
|
||||||
|
|
||||||
if (config) {
|
if (config) {
|
||||||
let bucket = (config.buckets as CTYunCosConfig['buckets']).find((ele) => ele.name === extraFile.bucket!);
|
let bucket = (config.buckets as CTYunCosConfig['buckets']).find((ele) => ele.name === extraFile.bucket!);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue