From 3a575d04b096fc6a2c8d821716cb92d29640e506 Mon Sep 17 00:00:00 2001 From: haixiangw Date: Tue, 19 Nov 2024 00:17:32 -0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=86=97=E4=BD=99=E7=9A=84su?= =?UTF-8?q?ffix=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: haixiangw --- CertManager/src/main/ets/presenter/CmInstallPresenter.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CertManager/src/main/ets/presenter/CmInstallPresenter.ets b/CertManager/src/main/ets/presenter/CmInstallPresenter.ets index 6fc8d2f..d45a7a5 100644 --- a/CertManager/src/main/ets/presenter/CmInstallPresenter.ets +++ b/CertManager/src/main/ets/presenter/CmInstallPresenter.ets @@ -51,10 +51,10 @@ export default class CmInstallPresenter { console.debug(TAG + 'updateCertFileType suffix: ' + suffix); if ((suffix === 'cer') || (suffix === 'pem') || (suffix === 'crt') || (suffix === 'der')) { this.optType = CMModelOptType.CM_MODEL_OPT_USER_CA; - } else if (((suffix === 'p12') || (suffix === 'jks') || (suffix === 'pfx')) && + } else if (((suffix === 'p12') || (suffix === 'pfx')) && AppStorage.get('installUserCred') === true) { this.optType = CMModelOptType.CM_MODEL_OPT_APP_CRED; - } else if (((suffix === 'p12') || (suffix === 'jks') || (suffix === 'pfx')) && + } else if (((suffix === 'p12') || (suffix === 'pfx')) && AppStorage.get('installSystemCred') === true) { this.optType = CMModelOptType.CM_MODEL_OPT_SYSTEM_CRED; } else {