!110 修改5.0编码告警

Merge pull request !110 from 陈怡博/cherry-pick-1717493648
This commit is contained in:
openharmony_ci 2024-06-04 14:11:21 +00:00 committed by Gitee
commit a16e325c80
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 9 additions and 9 deletions

View File

@ -144,10 +144,10 @@ struct CertInstallAliasInput {
this.mAppCredAuthPresenter.checkCertNameLength(fileInfo.uri, this.certAlias, fileInfo.suffix, pwd)
.then((result: number) => {
if (result !== CMModelErrorCode.CM_MODEL_ERROR_SUCCESS) {
console.info("CertNameLength reached limit!");
console.info('CertNameLength reached limit!');
this.isCertLong = true;
} else {
console.info("CertNameLength is within the limit !");
console.info('CertNameLength is within the limit!');
this.isCertLong = false;
this.mAppCredAuthPresenter.installCert(fileInfo.uri, this.certAlias, fileInfo.suffix);
}

View File

@ -222,7 +222,7 @@ struct CertificateComponent {
.width(WidthPercent.WH_100_100)
.height(WidthPercent.WH_100_100);
}
.backgroundColor($r("sys.color.ohos_id_color_sub_background"))
.backgroundColor($r('sys.color.ohos_id_color_sub_background'))
.width(WidthPercent.WH_100_100)
.height(WidthPercent.WH_100_100);
}
@ -230,8 +230,8 @@ struct CertificateComponent {
onPageShow() {
let uiExtensionFlag = GlobalContext.getContext().getFlag();
let installType: string = GlobalContext.getContext().getAbilityWant().parameters?.installType as string;
let uri = GlobalContext.getContext().getAbilityWant().uri
|| GlobalContext.getContext().getAbilityWant().parameters?.uri;
let uri = GlobalContext.getContext().getAbilityWant().uri ||
GlobalContext.getContext().getAbilityWant().parameters?.uri;
GlobalContext.getContext().clearAbilityWantUri();
GlobalContext.getContext().clearAbilityWantParamsUri();
if (uri === 'certInstall') {

View File

@ -51,11 +51,11 @@ export default class CmInstallPresenter {
console.debug(TAG + 'updateCertFileType suffix: ' + suffix);
if ((suffix === 'cer') || (suffix === 'pem')) {
this.optType = CMModelOptType.CM_MODEL_OPT_USER_CA;
} else if (((suffix === 'p12') || (suffix === 'jks') || (suffix === 'pfx'))
&& AppStorage.get('installUserCred') === true) {
} else if (((suffix === 'p12') || (suffix === 'jks') || (suffix === 'pfx')) &&
AppStorage.get('installUserCred') === true) {
this.optType = CMModelOptType.CM_MODEL_OPT_APP_CRED;
} else if (((suffix === 'p12') || (suffix === 'jks') || (suffix === 'pfx'))
&& AppStorage.get('installSystemCred') === true) {
} else if (((suffix === 'p12') || (suffix === 'jks') || (suffix === 'pfx')) &&
AppStorage.get('installSystemCred') === true) {
this.optType = CMModelOptType.CM_MODEL_OPT_SYSTEM_CRED;
} else {
console.debug(TAG, 'The file type is not supported. suffix: ' + suffix);