diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index e2a9f8aed..bb485fb1b 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -856,7 +856,7 @@ export default { provider: '验证方式', dnsCommon: '手动解析', expireDate: '过期时间', - brand: '品牌', + brand: '颁发者', deploySSL: '部署', deploySSLHelper: '确定部署证书?', ssl: '证书', @@ -940,7 +940,7 @@ export default { SSLProConfig: 'SSL 协议设置', supportProtocol: '支持的协议版本', encryptionAlgorithm: '加密算法', - notSecurity: ' 不安全', + notSecurity: '(不安全)', encryptHelper: "Let's Encrypt 签发证书有频率限制,但足以满足正常需求,过于频繁操作会导致签发失败。具体限制请看 官方文档 ", ipValue: 'IP值', @@ -984,6 +984,7 @@ export default { ssl: '证书', key: '私钥', startDate: '生效时间', + organization: '签发机构', }, firewall: { ccDeny: 'CC 防护', diff --git a/frontend/src/utils/util.ts b/frontend/src/utils/util.ts index 1f5cc6115..31ce37cbf 100644 --- a/frontend/src/utils/util.ts +++ b/frontend/src/utils/util.ts @@ -1,3 +1,5 @@ +import i18n from '@/lang'; + export function deepCopy(obj: any): T { let newObj: any; try { @@ -155,3 +157,16 @@ export function checkIp(value: string): boolean { return false; } } + +export function getProvider(provider: string): string { + switch (provider) { + case 'dnsAccount': + return i18n.global.t('website.dnsAccount'); + case 'dnsManual': + return i18n.global.t('website.dnsManual'); + case 'http': + return 'HTTP'; + default: + return i18n.global.t('ssl.manualCreate'); + } +} diff --git a/frontend/src/views/website/ssl/detail/index.vue b/frontend/src/views/website/ssl/detail/index.vue index fb0b0add3..ce833eacd 100644 --- a/frontend/src/views/website/ssl/detail/index.vue +++ b/frontend/src/views/website/ssl/detail/index.vue @@ -1,5 +1,5 @@