|
|
@ -18,6 +18,10 @@ import { useChatStore } from "../store/chat"; |
|
|
|
import { useAudioStore } from "../store/audio"; |
|
|
|
import { useDataStore } from "@/store/dataList.js"; |
|
|
|
import { marked } from "marked"; // 引入marked库 |
|
|
|
// 导入思考过程GIF |
|
|
|
import thinkingGif from '@/assets/img/gif/思考.gif'; |
|
|
|
import analyzeGif from '@/assets/img/gif/解析.gif'; |
|
|
|
import generateGif from '@/assets/img/gif/生成.gif'; |
|
|
|
import katex from "katex"; // 引入 KaTeX 库 |
|
|
|
import { htmlToText } from "html-to-text"; |
|
|
|
import { Howl, Howler } from "howler"; |
|
|
@ -953,7 +957,7 @@ async function showThinkingProcess(stockName = null) { |
|
|
|
type: "ing", |
|
|
|
flag: true, |
|
|
|
content: "正在思考......", |
|
|
|
gif: "/src/assets/img/gif/思考.gif", |
|
|
|
gif: thinkingGif, |
|
|
|
}); |
|
|
|
chatStore.messages.push(thinkingMessage1); |
|
|
|
await new Promise((resolve) => setTimeout(resolve, 1500)); |
|
|
@ -966,7 +970,7 @@ async function showThinkingProcess(stockName = null) { |
|
|
|
type: "ing", |
|
|
|
flag: true, |
|
|
|
content: "正在解析关键数据......", |
|
|
|
gif: "/src/assets/img/gif/解析.gif", |
|
|
|
gif: analyzeGif, |
|
|
|
}); |
|
|
|
chatStore.messages.push(thinkingMessage2); |
|
|
|
|
|
|
@ -986,7 +990,7 @@ async function showThinkingProcess(stockName = null) { |
|
|
|
type: "ing", |
|
|
|
flag: true, |
|
|
|
content: `正在生成${stockName}全景作战报告......`, |
|
|
|
gif: "/src/assets/img/gif/生成.gif", |
|
|
|
gif: generateGif, |
|
|
|
}); |
|
|
|
chatStore.messages.push(thinkingMessage3); |
|
|
|
await new Promise((resolve) => setTimeout(resolve, 1500)); |
|
|
@ -999,7 +1003,6 @@ async function showThinkingProcess(stockName = null) { |
|
|
|
type: "ing", |
|
|
|
flag: true, |
|
|
|
content: "报告已生成!", |
|
|
|
gif: "/src/assets/img/gif/生成.gif", |
|
|
|
}); |
|
|
|
chatStore.messages.push(thinkingMessage4); |
|
|
|
await new Promise((resolve) => setTimeout(resolve, 1500)); |
|
|
@ -1028,7 +1031,7 @@ async function continueThinkingProcess(thinkingMessageRef, stockName) { |
|
|
|
type: "ing", |
|
|
|
flag: true, |
|
|
|
content: `正在生成${stockName}全景作战报告......`, |
|
|
|
gif: "/src/assets/img/gif/生成.gif", |
|
|
|
gif: generateGif, |
|
|
|
}); |
|
|
|
chatStore.messages.push(thinkingMessage3); |
|
|
|
await new Promise((resolve) => setTimeout(resolve, 1500)); |
|
|
|