diff --git a/src/layout/components/Setting/src/Setting.vue b/src/layout/components/Setting/src/Setting.vue index 717472ac..306cb238 100644 --- a/src/layout/components/Setting/src/Setting.vue +++ b/src/layout/components/Setting/src/Setting.vue @@ -129,7 +129,7 @@ const copyConfig = async () => { // 标签页 tagsViewImmerse: ${appStore.getTagsViewImmerse}, // 标签页图标 - getTagsViewIcon: ${appStore.getTagsViewIcon}, + tagsViewIcon: ${appStore.getTagsViewIcon}, // logo logo: ${appStore.getLogo}, // 菜单手风琴 diff --git a/src/layout/components/UserInfo/src/UserInfo.vue b/src/layout/components/UserInfo/src/UserInfo.vue index 5c5e3732..355aabc8 100644 --- a/src/layout/components/UserInfo/src/UserInfo.vue +++ b/src/layout/components/UserInfo/src/UserInfo.vue @@ -23,7 +23,7 @@ const { getPrefixCls } = useDesign() 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') // 锁定屏幕 diff --git a/src/layout/components/UserInfo/src/components/LockDialog.vue b/src/layout/components/UserInfo/src/components/LockDialog.vue index f4ab7d4f..7257be16 100644 --- a/src/layout/components/UserInfo/src/components/LockDialog.vue +++ b/src/layout/components/UserInfo/src/components/LockDialog.vue @@ -21,7 +21,7 @@ const props = defineProps({ }) const userStore = useUserStore() -const avatar = computed(() => userStore.user.avatar ?? avatarImg) +const avatar = computed(() => userStore.user.avatar || avatarImg) const userName = computed(() => userStore.user.nickname ?? 'Admin') const emit = defineEmits(['update:modelValue']) diff --git a/src/layout/components/UserInfo/src/components/LockPage.vue b/src/layout/components/UserInfo/src/components/LockPage.vue index e53443fb..27d0a432 100644 --- a/src/layout/components/UserInfo/src/components/LockPage.vue +++ b/src/layout/components/UserInfo/src/components/LockPage.vue @@ -22,7 +22,7 @@ const showDate = ref(true) const { getPrefixCls } = useDesign() const prefixCls = getPrefixCls('lock-page') -const avatar = computed(() => userStore.user.avatar ?? avatarImg) +const avatar = computed(() => userStore.user.avatar || avatarImg) const userName = computed(() => userStore.user.nickname ?? 'Admin') const lockStore = useLockStore() diff --git a/src/views/ai/chat/index/components/message/MessageList.vue b/src/views/ai/chat/index/components/message/MessageList.vue index 2cc84079..b7402a9e 100644 --- a/src/views/ai/chat/index/components/message/MessageList.vue +++ b/src/views/ai/chat/index/components/message/MessageList.vue @@ -78,7 +78,7 @@ const userStore = useUserStore() const messageContainer: any = ref(null) const isScrolling = ref(false) //用于判断用户是否在滚动 -const userAvatar = computed(() => userStore.user.avatar ?? userAvatarDefaultImg) +const userAvatar = computed(() => userStore.user.avatar || userAvatarDefaultImg) const roleAvatar = computed(() => props.conversation.roleAvatar ?? roleAvatarDefaultImg) // 定义 props