feat: 删除对话的header
This commit is contained in:
parent
8b8f77cfcc
commit
39b5e30d4c
|
|
@ -16,13 +16,10 @@ uploads
|
||||||
.venv
|
.venv
|
||||||
__pycache__
|
__pycache__
|
||||||
.claude
|
.claude
|
||||||
<<<<<<< HEAD
|
|
||||||
*.db
|
*.db
|
||||||
=======
|
|
||||||
.trae
|
.trae
|
||||||
.agent
|
.agent
|
||||||
.agents
|
.agents
|
||||||
>>>>>>> feat/database
|
|
||||||
|
|
||||||
# Editor directories and files
|
# Editor directories and files
|
||||||
.vscode/*
|
.vscode/*
|
||||||
|
|
@ -34,7 +31,6 @@ __pycache__
|
||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
# Skills
|
# Skills
|
||||||
.skills
|
.skills
|
||||||
|
|
@ -42,9 +38,7 @@ __pycache__
|
||||||
.agents
|
.agents
|
||||||
.trae
|
.trae
|
||||||
skills-lock.json
|
skills-lock.json
|
||||||
=======
|
|
||||||
*.db
|
*.db
|
||||||
server/data/*.db
|
server/data/*.db
|
||||||
|
|
||||||
skills-lock.json
|
tsconfig.tsbuildinfo
|
||||||
>>>>>>> feat/database
|
|
||||||
|
|
@ -24,14 +24,14 @@
|
||||||
<!-- 消息内容区域 -->
|
<!-- 消息内容区域 -->
|
||||||
<div class="message-content-wrapper">
|
<div class="message-content-wrapper">
|
||||||
<!-- 角色名称 -->
|
<!-- 角色名称 -->
|
||||||
<div class="message-header">
|
<!-- <div class="message-header">
|
||||||
<span class="role-name">
|
<span class="role-name">
|
||||||
{{ message.role === "assistant" ? "AI 助手" : "你" }}
|
{{ message.role === "assistant" ? "AI 助手" : "你" }}
|
||||||
</span>
|
</span>
|
||||||
<span v-if="showTimestamp" class="timestamp">
|
<span v-if="showTimestamp" class="timestamp">
|
||||||
{{ formattedTime }}
|
{{ formattedTime }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
<!-- 消息主体 -->
|
<!-- 消息主体 -->
|
||||||
<div class="message-body">
|
<div class="message-body">
|
||||||
|
|
@ -183,7 +183,7 @@
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useClipboard } from "@vueuse/core";
|
import { useClipboard } from "@vueuse/core";
|
||||||
import { ref, computed } from "vue";
|
import { ref } from "vue";
|
||||||
// 正确导入 markstream-vue
|
// 正确导入 markstream-vue
|
||||||
import MarkdownRender from "markstream-vue";
|
import MarkdownRender from "markstream-vue";
|
||||||
import { setCustomComponents } from "markstream-vue";
|
import { setCustomComponents } from "markstream-vue";
|
||||||
|
|
@ -197,7 +197,7 @@ import {
|
||||||
Play,
|
Play,
|
||||||
} from "@/components/icons";
|
} from "@/components/icons";
|
||||||
import MessageActions from "./MessageActions.vue";
|
import MessageActions from "./MessageActions.vue";
|
||||||
import { formatTimestamp, formatFileSize, getFileIcon } from "@/utils/helpers";
|
import { formatFileSize, getFileIcon } from "@/utils/helpers";
|
||||||
import type { Message, Suggestion, Attachment, VideoInfo } from "@/types/chat";
|
import type { Message, Suggestion, Attachment, VideoInfo } from "@/types/chat";
|
||||||
import ThinkingNode from "./components/ThinkingNode.vue";
|
import ThinkingNode from "./components/ThinkingNode.vue";
|
||||||
import EChartsContainerNode from "./components/EChartsContainerNode.vue";
|
import EChartsContainerNode from "./components/EChartsContainerNode.vue";
|
||||||
|
|
@ -229,10 +229,6 @@ const emit = defineEmits<{
|
||||||
|
|
||||||
const isHovered = ref(false);
|
const isHovered = ref(false);
|
||||||
|
|
||||||
const formattedTime = computed(() => {
|
|
||||||
return formatTimestamp(props.message.timestamp);
|
|
||||||
});
|
|
||||||
|
|
||||||
function getFileEmoji(mimeType?: string) {
|
function getFileEmoji(mimeType?: string) {
|
||||||
return getFileIcon(mimeType || "");
|
return getFileIcon(mimeType || "");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue