判断逻辑有问题

This commit is contained in:
shizhong 2024-03-15 20:55:45 +08:00
parent 2566a0c47e
commit 8f368774ef

View File

@ -23,8 +23,9 @@ const { getPrefixCls } = useDesign()
const prefixCls = getPrefixCls('user-info')
const avatar = computed(() => userStore.user.avatar ?? avatarImg)
const userName = computed(() => userStore.user.nickname ?? 'Admin')
const avatar = computed(() => (userStore.user?.avatar != null && userStore.user?.avatar != '') ?
userStore.user?.avatar : avatarImg)
const userName = computed(() => userStore.user?.nickname ?? 'Admin')
//
const lockStore = useLockStore()