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