mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 21:14:23 +00:00
Add a basic news view page.
This commit is contained in:
parent
4b7934552c
commit
f34da9f5c1
9 changed files with 90 additions and 25 deletions
|
@ -56,7 +56,6 @@ onMounted(async () => {
|
|||
} = useFetch(`/api/ai/chat/${chatId.value}`);*/
|
||||
});
|
||||
|
||||
|
||||
const sendMessage = async (newMessage: any) => {
|
||||
if (!newMessage.trim() || !newsId.value.trim() || isStreaming.value) {
|
||||
return;
|
||||
|
@ -68,7 +67,7 @@ const sendMessage = async (newMessage: any) => {
|
|||
user: true,
|
||||
timestamp: new Date(),
|
||||
});
|
||||
messageIndex.value += 1
|
||||
messageIndex.value += 1;
|
||||
|
||||
try {
|
||||
isStreaming.value = true;
|
||||
|
@ -183,9 +182,7 @@ const formatTime = (timestamp: any) => {
|
|||
</div>
|
||||
</div>
|
||||
<div v-if="isStreaming" class="">
|
||||
<div>
|
||||
|
||||
</div>
|
||||
<div></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="h-[75px]"></div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue