判断逻辑有问题
This commit is contained in:
parent
2566a0c47e
commit
8f368774ef
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user