mirror of
https://gitee.com/openharmony/security_privacy_center
synced 2024-11-22 23:29:58 +00:00
删除冗余的suffix判断
Signed-off-by: haixiangw <wanghaixiang@huawei.com>
This commit is contained in:
parent
df4d0bc562
commit
3a575d04b0
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user