From 307743b7d06e9562ad8b283a71a30aef4f4403c8 Mon Sep 17 00:00:00 2001 From: zqx Date: Sat, 7 Sep 2024 15:38:39 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E3=80=91=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=88=9B=E5=BB=BA=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=9C=AA=E4=B8=8A=E4=BC=A0=E5=A4=B4=E5=83=8F=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=A4=B4=E5=83=8F=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84?= =?UTF-8?q?bug=E3=80=82=20=E3=80=90=E5=8A=9F=E8=83=BD=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E3=80=91=E4=BF=AE=E5=A4=8D=E5=B8=83=E5=B1=80=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=B8=AD=E6=A0=87=E7=AD=BE=E9=A1=B5=E5=9B=BE=E6=A0=87key?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Setting/src/Setting.vue | 2 +- src/layout/components/UserInfo/src/UserInfo.vue | 2 +- src/layout/components/UserInfo/src/components/LockDialog.vue | 2 +- src/layout/components/UserInfo/src/components/LockPage.vue | 2 +- src/views/ai/chat/index/components/message/MessageList.vue | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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