feat: 消息问答的调整
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user