feat: 消息问答的调整

This commit is contained in:
2026-04-03 00:43:11 +08:00
parent 679bea9135
commit d2fc0973dd
3 changed files with 64 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view class="bg-F5F7FA flex flex-col h-screen overflow-hidden">
<TopNavBar title="详情" backgroundColor="transparent" />
<TopNavBar :title="title" backgroundColor="transparent" />
<view class="flex-full overflow-hidden scroll-y p-12 border-box">
<ChatMarkdown :text="answerText" />
</view>
@@ -20,9 +20,13 @@ const props = defineProps({
});
const answerText = ref(props.answerText || "");
const title = ref("");
onLoad(({ message = "" }) => {
answerText.value = decodeURIComponent(message);
if (answerText.value.length > 6) {
title.value = answerText.value.substring(0, 6) + "...";
}
});
</script>