pull/229/head
xiaojunnuo 2024-10-29 18:15:38 +08:00
parent 12cebea29e
commit d1ea61debc
1 changed files with 4 additions and 4 deletions

View File

@ -97,16 +97,16 @@ export class HauweiDeployCertToCDN extends AbstractTaskPlugin {
const request = new cdn.ListDomainsRequest();
request.pageNumber = 1;
request.pageSize = 1000;
const result = await client.listDomains(request);
const result: any = await client.listDomains(request);
if (!result || !result.domains || result.domains.length === 0) {
throw new Error('未找到CDN域名您可以手动输入');
}
const domains = result.domains.map(domain => {
return {
value: domain.domainName,
label: domain.domainName,
domain: domain.domainName,
value: domain.domain_name,
label: domain.domain_name,
domain: domain.domain_name,
};
});