| | |
| | | </el-tooltip> |
| | | </div> |
| | | </div> |
| | | <!-- 历史建议 --> |
| | | <!-- 推理结论 --> |
| | | <ScheduleSuggestDialog |
| | | ref="scheduleSuggestRef" |
| | | /> |
| | | ref="scheduleSuggestRef" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | import MessageLoading from '../components/message/MessageLoading.vue' |
| | | import ConversationList from "../components/conversation/ConversationList.vue"; |
| | | import HistoryMessageDialog from "../components/message/HistoryMessageDialog.vue" |
| | | import ScheduleSuggestDialog from "../components/suggest/ScheduleSuggestDialog.vue" |
| | | import * as echarts from "echarts"; |
| | | import {formatToDateTime} from "@/utils/dateUtil"; |
| | | import { formatReasoningContent } from '@/views/ai/utils/utils' |
| | |
| | | const spliceText = content.includes("总结:") ? "总结:" : "结论:"; |
| | | const regex = new RegExp(`^([\\s\\S]*?)${spliceText}([\\s\\S]*)$`); |
| | | const match = content.match(regex); |
| | | console.log(match) |
| | | const result = match ? match[2].trim() : ''; |
| | | return result |
| | | } |