diff --git a/resources/views/chat/partials/user-actions.blade.php b/resources/views/chat/partials/user-actions.blade.php index 9f2b170..d14ecee 100644 --- a/resources/views/chat/partials/user-actions.blade.php +++ b/resources/views/chat/partials/user-actions.blade.php @@ -77,7 +77,9 @@ function userCardComponent() { return { showUserModal: false, - userInfo: {}, + userInfo: { + position_history: [] + }, isMuting: false, muteDuration: 5, showWhispers: false, @@ -490,7 +492,7 @@ cursor: pointer; font-size: 11px; font-weight: bold; color: #7c3aed; margin-bottom: 4px; user-select: none;"> 🎖️ 职务履历 + x-text="'(' + (userInfo.position_history?.length ?? 0) + ' 条)'"> {{-- 折叠内容 --}} @@ -504,7 +506,7 @@ :style="h.is_active ? 'background: #7c3aed; box-shadow: 0 0 0 3px #ede9fe;' : 'background: #d1d5db;'"> -