mirror of https://github.com/certd/certd
fix: 补充类型断言
parent
32c714d1b6
commit
2143dff2ae
|
@ -129,9 +129,9 @@ export class DeployCertToTencentAll extends AbstractTaskPlugin {
|
||||||
|
|
||||||
let certId:string = null
|
let certId:string = null
|
||||||
if (typeof this.tencentCertId === 'string') {
|
if (typeof this.tencentCertId === 'string') {
|
||||||
certId = this.tencentCertId;
|
certId = this.tencentCertId as string;
|
||||||
} else if (this.tencentCertId && typeof this.tencentCertId === 'object') {
|
} else if (this.tencentCertId && typeof this.tencentCertId === 'object') {
|
||||||
certId = await this.uploadToTencent(access, this.tencentCertId);
|
certId = await this.uploadToTencent(access, this.tencentCertId as CertInfo);
|
||||||
} else {
|
} else {
|
||||||
throw new Error('无效的证书输入类型');
|
throw new Error('无效的证书输入类型');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue