补齐已发送邮件密送名单展示并保持收件隐私
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-10-03 21:35:41 +08:00
1 parent 1d89c2a0fc
commit 316071bfee
3 files changed
+57

No files matched your search

@@ -26,9 +26,13 @@ export function usePage() {
const tos = ref([])
const ccs = ref([])
const bccs = ref([])
const showCC = ref(false)
const showBCC = ref(false)
const loading = ref(false)
const loadError = ref('')
let requestSequence = 0
@@ -47,7 +51,9 @@ export function usePage() {
detailData.value = {attachments: []}
tos.value = []
ccs.value = []
bccs.value = []
showCC.value = false
showBCC.value = false
loadError.value = ''
loading.value = true
@@ -76,6 +82,9 @@ export function usePage() {
tos.value = parseAddresses(data.to)
ccs.value = parseAddresses(data.cc)
showCC.value = ccs.value.length > 0
// 仅在本人的发件副本展示密送;后端仍负责所有权校验和收件副本脱敏。
bccs.value = data.type === 1 ? parseAddresses(data.bcc) : []
showBCC.value = bccs.value.length > 0
} catch {
if (sequence === requestSequence) {
loadError.value = '网络连接失败,请稍后重试'
@@ -165,6 +174,8 @@ export function usePage() {
tos,
ccs,
showCC,
bccs,
showBCC,
loading,
loadError,
loadDetail,
@@ -61,6 +61,12 @@
{{ item.Name !== '' ? item.Name : item.EmailAddress }}<span v-if="index < ccs.length - 1">, </span>
</span>
</span>
<span v-if="showBCC" class="cc-section">
<span class="meta-label">{{ lang.bcc }}:</span>
<span v-for="(item, index) in bccs" :key="'bcc'+index" class="receiver-chip">
{{ item.Name || item.EmailAddress }}<span v-if="index < bccs.length - 1">, </span>
</span>
</span>
</div>
</div>
</div>
@@ -109,6 +115,8 @@ const {
tos,
showCC,
ccs,
showBCC,
bccs,
formatDetailDate
} = usePage()
</script>