fix: 补充类型断言

This commit is contained in:
xinghejd
2025-04-15 08:54:28 +00:00
parent 32c714d1b6
commit 2143dff2ae

View File

@@ -129,9 +129,9 @@ export class DeployCertToTencentAll extends AbstractTaskPlugin {
let certId:string = null
if (typeof this.tencentCertId === 'string') {
certId = this.tencentCertId;
certId = this.tencentCertId as string;
} 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 {
throw new Error('无效的证书输入类型');
}