!169 fix: 修复用户没有岗位,个人中心初始内容不显示

Merge pull request !169 from icaiwei/dev
pull/170/head^2
xingyu 2025-07-09 08:55:32 +00:00 committed by Gitee
commit 40694f3818
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ async function handelUpload({
所属岗位
</div>
</template>
{{ profile.posts.map((post) => post.name).join(',') }}
{{ profile.posts && profile.posts.length > 0 ? profile.posts.map(post => post.name).join(',') : '-' }}
</DescriptionsItem>
<DescriptionsItem>
<template #label>