修复用户管理外部邮箱绑定状态误显示关闭
This commit is contained in:
1 parent
39e65eb9f4
commit
29a1d58461
3 files changed
+7
-11
No files matched your search
@@ -18,10 +18,7 @@ export function recoveryCodeMeta(configured) {
|
||||
: { label: '未开启', type: 'info' }
|
||||
}
|
||||
|
||||
export function externalEmailMeta(enabled, configured) {
|
||||
if (!enabled) {
|
||||
return { label: '已关闭', type: 'warning' }
|
||||
}
|
||||
export function externalEmailMeta(configured) {
|
||||
return configured
|
||||
? { label: '已绑定', type: 'success' }
|
||||
: { label: '未绑定', type: 'info' }
|
||||
|
||||
@@ -37,12 +37,12 @@
|
||||
<el-table-column label="外部邮箱" width="76">
|
||||
<template #default="scope">
|
||||
<el-tag
|
||||
:type="externalEmailMeta(scope.row.ExternalEmailEnabled, scope.row.ExternalEmailConfigured).type"
|
||||
:type="externalEmailMeta(scope.row.ExternalEmailConfigured).type"
|
||||
size="small"
|
||||
effect="plain"
|
||||
class="status-tag"
|
||||
>
|
||||
{{ externalEmailMeta(scope.row.ExternalEmailEnabled, scope.row.ExternalEmailConfigured).label }}
|
||||
{{ externalEmailMeta(scope.row.ExternalEmailConfigured).label }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -165,7 +165,6 @@
|
||||
<strong>外部邮箱</strong>
|
||||
<span>
|
||||
{{ externalEmailMeta(
|
||||
selectedUser?.ExternalEmailEnabled,
|
||||
selectedUser?.ExternalEmailConfigured
|
||||
).label }}
|
||||
</span>
|
||||
|
||||
Reference in new issue
Block a user