feat: 修改agent头像

This commit is contained in:
2026-03-13 11:35:56 +08:00
parent deff3410bf
commit d12cb53869
3 changed files with 15 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

View File

@@ -27,7 +27,7 @@
:rehype-plugins="[rehypeRaw]" :rehype-plugins="[rehypeRaw]"
> >
<template v-slot:s-ReportCard="" {children:children,...attrs}> <template v-slot:s-ReportCard="" {children:children,...attrs}>
<ReportCard :report="{ title: attrs.title, content: attrs.content }" /> <ReportCard :report="{ title: attrs.title, content: attrs.content }" @click="handleClickReport(content)" />
</template> </template>
</VueMarkdown> </VueMarkdown>
</div> </div>
@@ -77,7 +77,7 @@
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import gsap from 'gsap' import gsap from 'gsap'
import userThumb from '@/assets/images/user-thumb.jpg' import userThumb from '@/assets/images/user-thumb.jpg'
import agentThumb from '@/assets/images/agent-thumb.jpg' import agentThumb from '@/assets/images/agent-thumb.png'
import ReportCard from './ReportCard.vue' import ReportCard from './ReportCard.vue'
import UrlCard from './UrlCard.vue' import UrlCard from './UrlCard.vue'
import { VueMarkdown } from '@crazydos/vue-markdown' import { VueMarkdown } from '@crazydos/vue-markdown'
@@ -195,7 +195,15 @@
const toggleThinkingCollapsed = () => { const toggleThinkingCollapsed = () => {
props.content.thinkingCollapsed = !props.content.thinkingCollapsed props.content.thinkingCollapsed = !props.content.thinkingCollapsed
}
const handleClickReport = (data) => {
// 点击显示报告
}
const handleClickUrls = (data) => {
// 点击显示来源
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
@@ -235,6 +243,10 @@
font-size: 1.4rem; font-size: 1.4rem;
width: 82%; width: 82%;
} }
&.is-user .message-context {
width: fit-content;
max-width: 82%;
}
} }
.operate { .operate {
margin-top: 1.3rem; margin-top: 1.3rem;