fix: 修复审批人昵称包含逗号时显示不正确的问题
将审批人昵称分割逻辑从 approveName 字段改为 approver 字段, 并添加注释说明昵称中带逗号的处理仍不准确,为后续优化提供提醒。
This commit is contained in:
parent
968a2eb7b6
commit
d9131cbe22
@ -45,11 +45,8 @@ onMounted(async () => {
|
|||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
|
||||||
* 这里无法处理昵称中带,的情况
|
|
||||||
*/
|
|
||||||
const isMultiplePerson = computed(
|
const isMultiplePerson = computed(
|
||||||
() => props.item.approveName?.split(',').length > 1,
|
() => props.item.approver?.split(',').length > 1,
|
||||||
);
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -87,6 +84,7 @@ const isMultiplePerson = computed(
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div :class="cn('mt-2 flex flex-wrap gap-2')" v-if="isMultiplePerson">
|
<div :class="cn('mt-2 flex flex-wrap gap-2')" v-if="isMultiplePerson">
|
||||||
|
<!-- 如果昵称中带, 这里的处理是不准确的 -->
|
||||||
<div
|
<div
|
||||||
:class="cn('bg-foreground/5 flex items-center rounded-full', 'p-1')"
|
:class="cn('bg-foreground/5 flex items-center rounded-full', 'p-1')"
|
||||||
v-for="(name, index) in item.approveName.split(',')"
|
v-for="(name, index) in item.approveName.split(',')"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user