提交 45fcfe80 authored 作者: 张伊明's avatar 张伊明

新增错误提示

上级 37f443d6
......@@ -255,7 +255,7 @@ const processContent = ref("");
const scrollContainer = ref(null);
const reportContent = ref("");
const curTempTitle = ref("法案");
const curTempTitle = ref("政令");
// 停止生成
const handleGenerate = () => {
......@@ -265,10 +265,14 @@ const handleGenerate = () => {
};
// 当前调用工具
const curAgentTool = ref("报告整体优化工具");
const curAgentTool = ref("");
const getStreamChat = async (search, inputValue) => {
if (curTempTitle.value === "政令") {
if (uploadFileList.value.length === 0) {
ElMessage.error("请上传政令文件");
return;
}
const rawFile = uploadFileList.value[0].raw;
if (!rawFile) {
ElMessage.error("文件解析失败,请重新选择");
......@@ -493,6 +497,10 @@ const tabList = ref([
}
]);
const tempList = ref([
{
title: "政令",
desc: "基于政令内容生成各维度的综合分析报告"
},
{
title: "法案",
desc: "基于政令内容生成各维度的综合分析报告"
......@@ -501,10 +509,6 @@ const tempList = ref([
title: "智库",
desc: "基于智库内容生成各维度的综合分析报告"
},
{
title: "政令",
desc: "基于政令内容生成各维度的综合分析报告"
},
{
title: "清单",
desc: "基于清单内容生成各维度的综合分析报告"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论