Commit 5580f004 authored by nick zheng's avatar nick zheng

chore: 分享应用头像统一

parent 402bc10c
......@@ -5,6 +5,7 @@ import CustomLoading from './custom-loading.vue'
import MarkdownRender from '@/components/markdown-render/markdown-render.vue'
import { PersonalAppConfigState } from '@/store/types/personal-app-config'
import { useLayoutConfig } from '@/composables/useLayoutConfig'
import { useUserStore } from '@/store/modules/user'
interface Props {
role: 'user' | 'assistant'
......@@ -16,9 +17,13 @@ const { t } = useI18n()
const props = defineProps<Props>()
const userStore = useUserStore()
const { isMobile } = useLayoutConfig()
const useAvatar = 'https://mkp-dev.oss-cn-shenzhen.aliyuncs.com/data/upload/20240827/1724728478476.png'
const useAvatar = computed(() => {
return userStore.userInfo.avatarUrl || 'https://gsst-poe-sit.gz.bcebos.com/data/20240910/1725952917468.png'
})
const assistantAvatar = computed(() => {
return (
......
......@@ -33,7 +33,7 @@ function handleToLogin() {
<template>
<header class="flex h-[48px] w-full items-center justify-between border-b border-[#e8e9eb] bg-white px-4">
<div class="bg-px-page_logo-png h-[23px] w-[90px] bg-contain bg-center bg-no-repeat" />
<div class="bg-px-logo-png h-[24px] w-[100px] bg-center bg-no-repeat" />
<div>
<NButton
v-show="isLogin"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment