用户信息变更
This commit is contained in:
@@ -89,6 +89,7 @@ import type { UserVO, SysMenu } from '@/types';
|
||||
import { ChangeHome } from '@/components/base';
|
||||
import userIcon from '@/assets/imgs/user.svg';
|
||||
import settingsIcon from '@/assets/imgs/settings.svg';
|
||||
import { FILE_DOWNLOAD_URL } from '@/config';
|
||||
// Props
|
||||
interface Props {
|
||||
user?: UserVO | null;
|
||||
@@ -118,7 +119,7 @@ const isLoggedIn = computed(() => {
|
||||
});
|
||||
|
||||
const userAvatar = computed(() => {
|
||||
return props.user?.avatar || '';
|
||||
return props.user?.avatar ? FILE_DOWNLOAD_URL + props.user?.avatar : '';
|
||||
});
|
||||
|
||||
const avatarText = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user