style: 优化申请证书 acme 账户显示 (#5500)

Refs https://github.com/1Panel-dev/1Panel/issues/3580
This commit is contained in:
zhengkunwang 2024-06-19 16:46:58 +08:00 committed by GitHub
parent f59bea27e8
commit 4460329d2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 17 deletions

View file

@ -505,13 +505,6 @@ export async function copyText(content: string) {
}
}
export function getRuleType(ruleType: string) {
if (ruleType == '') {
return '';
}
return i18n.global.t(`xpack.waf.${ruleType}`);
}
export function getAction(action: string) {
if (action == '') {
return '';

View file

@ -39,16 +39,8 @@
:label="acme.email + ' [' + getAccountName(acme.type) + '] '"
:value="acme.id"
>
<el-row>
<el-col :span="11">
<span>{{ acme.email }}</span>
</el-col>
<el-col :span="11">
<span>
<el-tag type="success">{{ getAccountName(acme.type) }}</el-tag>
</span>
</el-col>
</el-row>
<span>{{ acme.email }}</span>
<el-tag type="success" class="ml-2">{{ getAccountName(acme.type) }}</el-tag>
</el-option>
</el-select>
</el-form-item>