fix: 补充类型断言

pull/373/head
xinghejd 2025-04-15 08:54:28 +00:00
parent 32c714d1b6
commit 2143dff2ae
1 changed files with 2 additions and 2 deletions

View File

@ -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('无效的证书输入类型');
} }