|
|
@ -25,7 +25,7 @@ const prefixCls = getPrefixCls('user-info') |
|
|
|
|
|
|
|
|
|
|
|
const avatar = computed(() => userStore.user.avatar || avatarImg) |
|
|
|
const avatar = computed(() => userStore.user.avatar || avatarImg) |
|
|
|
const userName = computed(() => userStore.user.nickname ?? 'Admin') |
|
|
|
const userName = computed(() => userStore.user.nickname ?? 'Admin') |
|
|
|
|
|
|
|
const realName=computed(()=>userStore.user.realName ?? '管理员') |
|
|
|
// 锁定屏幕 |
|
|
|
// 锁定屏幕 |
|
|
|
const lockStore = useLockStore() |
|
|
|
const lockStore = useLockStore() |
|
|
|
const getIsLock = computed(() => lockStore.getLockInfo?.isLock ?? false) |
|
|
|
const getIsLock = computed(() => lockStore.getLockInfo?.isLock ?? false) |
|
|
@ -59,7 +59,7 @@ const toDocument = () => { |
|
|
|
<div class="flex items-center"> |
|
|
|
<div class="flex items-center"> |
|
|
|
<ElAvatar :src="avatar" alt="" class="w-[calc(var(--logo-height)-25px)] rounded-[50%]" /> |
|
|
|
<ElAvatar :src="avatar" alt="" class="w-[calc(var(--logo-height)-25px)] rounded-[50%]" /> |
|
|
|
<span class="pl-[5px] text-14px text-[var(--top-header-text-color)] <lg:hidden"> |
|
|
|
<span class="pl-[5px] text-14px text-[var(--top-header-text-color)] <lg:hidden"> |
|
|
|
{{ userName }} |
|
|
|
{{ realName }} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<template #dropdown> |
|
|
|
<template #dropdown> |
|
|
|