提交 4bda570f authored 作者: 张伊明's avatar 张伊明

合并分支 'ayp-dev' 到 'pre'

修改 public config文件 增加outImgbaseUrl变量 查看合并请求 !323
流水线 #386 已通过 于阶段
in 4 分 1 秒
const baseUrl = `http://8.140.26.4:9085` const baseUrl = `http://8.140.26.4:9085`
\ No newline at end of file
const outImgbaseUrl = `http://172.19.21.9:8003/out/img` // 写报图片URL
\ No newline at end of file
...@@ -485,7 +485,6 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', { ...@@ -485,7 +485,6 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
// ========== AI 生成报文 SSE(更新报文内容 + 执行步骤) ========== // ========== AI 生成报文 SSE(更新报文内容 + 执行步骤) ==========
async fetchReportData(params) { async fetchReportData(params) {
console.log(">")
if (this.abortController) this.abortController.abort(); if (this.abortController) this.abortController.abort();
this.abortController = new AbortController(); this.abortController = new AbortController();
// this.processLog = ''; // this.processLog = '';
...@@ -511,7 +510,7 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', { ...@@ -511,7 +510,7 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
lastFlushedIndex = 0; lastFlushedIndex = 0;
if (this.reportContent.includes('./out/img')) { if (this.reportContent.includes('./out/img')) {
this.reportContent = this.reportContent.replaceAll('./out/img', 'http://172.19.21.9:8003/out/img'); this.reportContent = this.reportContent.replaceAll('./out/img', outImgbaseUrl);
} }
}; };
...@@ -571,7 +570,6 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', { ...@@ -571,7 +570,6 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
streamBuffer += str; streamBuffer += str;
updateFlushIndexByBoundary(); updateFlushIndexByBoundary();
flushToReport(false); flushToReport(false);
console.log(streamBuffer,456)
console.log(msgData,'data') console.log(msgData,'data')
} else { } else {
// 结束时把剩余内容强制 flush // 结束时把剩余内容强制 flush
...@@ -663,7 +661,6 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', { ...@@ -663,7 +661,6 @@ export const useWrittingAsstaintStore = defineStore('writtingAsstaint', {
}; };
await this.fetchReportData(params); await this.fetchReportData(params);
} else { } else {
console.log(10101010101010)
// 政令模板需要先解析PDF // 政令模板需要先解析PDF
if (this.curTempTitle === '政令') { if (this.curTempTitle === '政令') {
if (this.uploadFileList.length === 0) { if (this.uploadFileList.length === 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论