提交 87806c49 作者: 施汉文

修改报错提示

上级 50031316
...@@ -183,12 +183,19 @@ export default { ...@@ -183,12 +183,19 @@ export default {
data.loading = true; data.loading = true;
try { try {
await regenerateSummary({ session_id: data.session_id }); await regenerateSummary({ session_id: data.session_id });
this.$message({ if (res.status_code === 1) {
message: "重新生成成功", this.$message({
type: "success", message: "重新生成成功",
}); type: "success",
// 重新加载数据 });
this.getSessionSummaryList(); // 重新加载数据
this.getSessionSummaryList();
} else {
this.$message({
message: res.data.msg,
type: "error",
});
}
} catch (error) { } catch (error) {
console.error("重新生成会话总结失败:", error); console.error("重新生成会话总结失败:", error);
} finally { } finally {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论